cable / cable-caching
Caching library for Cable Framework
1.1.0
2017-06-09 00:30 UTC
Requires
- cable/cable-container: ^1.1
Requires (Dev)
- cable/cable-caching-memcache: 1.0.*
- cable/cable-redis-driver: 1.0.*
README
Cache library for Cable Framework
memcache
$container = Factory::create(); $container->addProvider(CachingProvider::class); $container->addProvider(MemcacheDriverProvider::class); $cache = Caching::create($container); $memcache = $cache->driver('memcache');
Redis
$container = Factory::create(); $container->addProvider(CachingProvider::class); $container->addProvider(RedisDriverProvider::class); $cache = Caching::create($container); $memcache = $cache->driver('redis');
array
$container = Factory::create(); $container->addProvider(CachingProvider::class); $cache = Caching::create($container); $memcache = $cache->driver('array');