Skip to content

Latest commit

 

History

History
45 lines (31 loc) · 1.45 KB

README.md

File metadata and controls

45 lines (31 loc) · 1.45 KB

CakePHP 3.x cache engine for Redis Cluster

Latest Version Total Downloads Software License

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