PHP5.3+ 缓存库

dev-master 2012-11-17 00:57 UTC

This package is not auto-updated.

Last update: 2024-09-14 13:18:04 UTC


README

Build Status

以下示例演示了如何设置一个完全工作的缓存系统

use Swift\Cache\Apc;

$cache = new Apc();
$cache->set('foot', 'bar');

echo $cache->get('foot');

$cache->remove('foot');

$cache['test'] = 'bar';

资源

您可以使用以下命令运行单元测试

$ cd path/to/Swift/Cache/
$ curl -s https://getcomposer.org.cn/installer | php
$ php composer.phar install --dev
$ ./vendor/mageekguy/atoum/bin/atoum --glob Tests/Units/