2017 © Pedro Peláez
 

project cache

缓存组件

image

badtomcat/cache

缓存组件

  • Wednesday, December 20, 2017
  • by badtomcat
  • Repository
  • 0 Watchers
  • 0 Stars
  • 22 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 5 % Grown

The README.md

配置

Cache组件, (*1)

开始使用

安装组件

使用 composer 命令进行安装或下载源代码使用。, (*2)

composer require badtomcat/cache, (*3)

$cache = new Badtomcat\Cache\FileCache(__DIR__."/cache");
$cache->set('key', 'taw');
$this->assertEquals($cache->get('key'), 'taw');
$cache->set('balabala', 'balabala',1);
$this->assertEquals($cache->get('balabala'), 'balabala');
sleep(2);
$this->assertEquals($cache->get('balabala'), null);
$cache->flush();

The Versions

20/12 2017

dev-master

9999999-dev https://github.com/badtomcat/cache

缓存组件

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar badtomcat

cache badtomcat

20/12 2017

v0.0.1

0.0.1.0 https://github.com/badtomcat/cache

缓存组件

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar badtomcat

cache badtomcat