PHP library providing basic shopping cart functionality.
Install the latest version using composer require riesenia/cakephp-rediscluster
Or add to your composer.json file as a requirement:
{
"require": {
"riesenia/cakephp-rediscluster": "~1.0"
}
}
Use as cache engine. For more information see CakePHP Caching.
Example configuration:
Cache::config('redis', [
'className' => 'Riesenia/RedisCluster.RedisCluster',
'server' => ['10.10.10.10:6379', '10.10.10.20:6379', '10.10.10.30:6379']
]);
Slave failover / distibution can be configured by failover
configuration key. See related chapter in phpredis cluster readme.
Possible values are:
- none (default)
- error
- distribute
- slaves