snakano / cakephp-redis-cluster-cache
Redis Cache Engine for CakePHP 2.x (support redis cluster)
Installs: 132
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:cakephp-plugin
Requires
- php: >=5.3.0
- ext-redis: *
- composer/installers: *
This package is auto-updated.
Last update: 2024-10-24 17:37:25 UTC
README
Redis cluster cache engine for CakePHP 2.x
Installation
Install the plugin using composer
composer require "snakano/cakephp-redis-cluster-cache"
Usage
Load the plugin app/Config/bootstrap.php
file:
CakePlugin::load('RedisClusterCache');
And cache configuration:
Cache::config('default', array(
'engine' => 'RedisClusterCache.RedisCluster',
'prefix' => Inflector::slug(APP_DIR) . '_',
'servers' => ['127.0.0.1:6379'],
'password' => false,
'timeout' => 0,
'read_timeout' => 0,
'persistent' => false,
'slave_failover' => RedisCluster::FAILOVER_NONE,
));