dev-master
9999999-dev https://github.com/bjyoungblood/BjyCacheStorageVarious storage adapters for Zend\Cache
The Requires
cache redis zf2
Wallogit.com
2017 © Pedro Peláez
Various storage adapters for Zend\Cache
Provides cache storage adapters for backends not supplied by Zend\Cache., (*1)
$objectProxy = PatternFactory::factory('object', array(
'object' => $object,
'storage' => 'redis'
));
Or for more options:, (*2)
$objectProxy = PatternFactory::factory('object', array(
'object' => $object,
'storage' => array(
'adapter' => array(
'name' => 'zenddb',
'options' => array(
'adapter' => new Zend\Db\Adapter\Adapter,
'tablename' => 'cache',
'keyfield' => 'key',
'valuefield' => 'value'
),
),
),
);
For configuration options for Redis, please check the readme for the Predis library, (*3)
All configuration options for Zend\Db are shown in the example above, (*4)
Various storage adapters for Zend\Cache
cache redis zf2