library cache
Caching library with support for multiple cache backends
zodyac/cache
Caching library with support for multiple cache backends
- Friday, September 13, 2013
- by noginn
- Repository
- 30 Watchers
- 0 Stars
- 102 Installations
- PHP
- 1 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 4 Versions
- 0 % Grown
Zodyac Cache
Caching library with a unified interface for multiple backends, (*1)
, (*2)
Usage
use Zodyac\Cache\Cache;
use Zodyac\Cache\Storage\ApcStorage;
$cache = new Cache(new ApcStorage());
$result = $cache->get('key');
if ($result->isMiss()) {
$value = expensiveOperation(42);
$cache->set('key', $value);
}
Backends
Memcached
APC
Doctrine cache bridge
Use the your Zodyac\Cache\Cache instance as a Doctrine Cache with Zodyac\Cache\DoctrineCache. This is useful when you want to use Zodyac Cache for metadata, query or result caching in Doctrine ORM., (*3)
use Zodyac\Cache\Cache;
use Zodyac\Cache\DoctrineCache;
use Zodyac\Cache\Storage\ApcStorage;
$cache = new Cache(new ApcStorage());
$doctrineCache = new DoctrineCache($cache);
$value = $doctrineCache->doFetch('key');
Credits
dev-master
9999999-dev
http://jadu.github.io
Caching library with support for multiple cache backends
Sources
Download
NCSA
The Requires
The Development Requires
by
Tom Graham
cache
memcached
v0.1.2
0.1.2.0
http://jadu.github.io
Caching library with support for multiple cache backends
Sources
Download
NCSA
The Requires
The Development Requires
by
Tom Graham
cache
memcached
v0.1.1
0.1.1.0
http://jadu.github.io
Caching library with support for multiple cache backends
Sources
Download
NCSA
The Requires
The Development Requires
by
Tom Graham
cache
memcached
v0.1.0
0.1.0.0
http://jadu.github.io
Caching library with support for multiple cache backends
Sources
Download
NCSA
The Requires
The Development Requires
by
Tom Graham
cache
memcached