PHP code example of riesenia / cakephp-rediscluster

1. Go to this page and download the library: Download riesenia/cakephp-rediscluster 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/ */

    

riesenia / cakephp-rediscluster example snippets


Cache::config('redis', [
    'className' => 'Riesenia/RedisCluster.RedisCluster',
    'server' => ['10.10.10.10:6379', '10.10.10.20:6379', '10.10.10.30:6379']
]);