1. Go to this page and download the library: Download lorenzo/redis 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/ */
lorenzo / redis example snippets
'Datasources' => [
...
'redis' => [
'className' => 'Cake\Redis\RedisConnection',
'driver' => 'phpredis', // Can also use a full class name or 'predis'
'log' => false, // Log executed commands
'host' => '127.0.0.1',
'port' => 6379,
'timeout' => [optional],
'reconnectionDelay' => [optional],
'persistentId' => [optional],
'database' => [optional],
'options' => [], // extra options for the driver
]
]