PHP code example of zunnu / cake-redis-cluster
1. Go to this page and download the library: Download zunnu/cake-redis-cluster library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
zunnu / cake-redis-cluster example snippets
php
Cache::setConfig('redis', [
'className' => 'CakeRedisCluster.RedisCluster',
'nodes' => [
'redis-node-0:6379',
'redis-node-1:6379',
'redis-node-2:6379',
'redis-node-3:6379',
'redis-node-4:6379',
'redis-node-5:6379',
],
]);