Redis cluster cache engine for CakePHP 2.x
Install the plugin using composer
composer require "snakano/cakephp-redis-cluster-cache"
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,
));