cable/cable-caching

Caching library for Cable Framework

1.1.0 2017-06-09 00:30 UTC

This package is not auto-updated.

Last update: 2024-11-10 03:05:27 UTC


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');