swiftframework / cache
Cache library for PHP5.3+
dev-master
2012-11-17 00:57 UTC
Requires
- php: >=5.3.3
Requires (Dev)
- mageekguy/atoum: master-dev
This package is not auto-updated.
Last update: 2024-11-09 14:04:08 UTC
README
The example below demonstrates how you can set up a fully working cache system:
use Swift\Cache\Apc;
$cache = new Apc();
$cache->set('foot', 'bar');
echo $cache->get('foot');
$cache->remove('foot');
$cache['test'] = 'bar';
Resources
You can run the unit tests with the following command:
$ cd path/to/Swift/Cache/
$ curl -s https://getcomposer.org/installer | php
$ php composer.phar install --dev
$ ./vendor/mageekguy/atoum/bin/atoum --glob Tests/Units/