riesenia / cakephp-rediscluster
CakePHP 3.x cache engine for Redis Cluster
Installs: 31 636
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 2
Open Issues: 2
Requires
- cakephp/cache: ~3.0
Requires (Dev)
- phpstan/phpstan: ~0.10.0
- rshop/php-cs-fixer-config: ~1.0
This package is auto-updated.
Last update: 2024-11-07 16:11:40 UTC
README
PHP library providing basic shopping cart functionality.
Installation
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" } }
Usage
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 / distribution
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