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

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 config
Octocat-spinner-32 src
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Module.php
Octocat-spinner-32 README.md
Octocat-spinner-32 composer.json
Octocat-spinner-32 composer.phar
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.