Skip to content

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

Merge pull request #2 from dpeuscher/master

added classmap-Autoloader to composer.json
latest commit 158ee417f4
Ben Youngblood authored
Failed to load latest commit information.
config
src/BjyCacheStorage/Adapter
.gitignore
Module.php
README.md
composer.json
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.