Skip to content

tyrellsys/cakephp-rediscluster

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

CakePHP 3.x cache engine for Redis Cluster

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%