riesenia/cakephp-rediscluster

CakePHP 3.x cache engine for Redis Cluster

v1.0.2 2018-11-06 20:04 UTC

This package is auto-updated.

Last update: 2020-02-07 05:53:14 UTC


README

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