2017 © Pedro Peláez
 

library bjy-cache-storage

Various storage adapters for Zend\Cache

image

tlapi/bjy-cache-storage

Various storage adapters for Zend\Cache

  • Thursday, February 13, 2014
  • by Tlapi
  • Repository
  • 1 Watchers
  • 0 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 8 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

BjyCacheStorage

Provides cache storage adapters for backends not supplied by Zend\Cache., (*1)

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:, (*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'
            ),
        ),
    ),
);

Configuration

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)

The Versions

13/02 2014

dev-master

9999999-dev https://github.com/bjyoungblood/BjyCacheStorage

Various storage adapters for Zend\Cache

  Sources   Download

The Requires

 

cache redis zf2