PHP code example of devgeniem / wp-redis-object-cache-dropin
1. Go to this page and download the library: Download devgeniem/wp-redis-object-cache-dropin 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/ */
devgeniem / wp-redis-object-cache-dropin example snippets
define( 'WP_REDIS_SERVERS', [
'tcp://127.0.0.1:6379?database=15&alias=master',
'tcp://127.0.0.2:6379?database=15&alias=slave-01',
] );
define( 'WP_REDIS_CLUSTER', [
'tcp://127.0.0.1:6379?database=15&alias=node-01',
'tcp://127.0.0.2:6379?database=15&alias=node-02',
] );