Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Redis and various other Zend\Cache storage adapters for ZF2

branch: master
README.md

BjyCacheStorage

Provides cache storage adapters for backends not supplied by Zend\Cache.

Adapters

  • Redis (requires Predis >= v0.7)
  • ZendDb (using most RDBMS platforms)

Usage

$objectProxy = PatternFactory::factory('object', array(
    'object' => $object,
    'storage' => 'redis'
));

Or for more options:

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

Configuration

For configuration options for Redis, please check the readme for the Predis library

All configuration options for Zend\Db are shown in the example above

Something went wrong with that request. Please try again.