Open mxmkmarquette opened 7 years ago
use multiple redis instance like in Redis object cache it's possible to use multiple redis one as master and the other as slave.
that's the code habitually we should add into the wp-config.php
define( 'WP_REDIS_SERVERS', [ 'tcp://127.0.0.1:6379?database=0&alias=master', 'tcp://127.0.0.1:6381?database=0&alias=slave-01', 'tcp://127.0.0.1:6382?database=0&alias=slave-02', 'tcp://127.0.0.1:6383?database=0&alias=slave-03', ] );
or like setting up a cluster
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', ] );<h3>WP-CLI Commands</h3>
https://en-ca.wordpress.org/plugins/redis-cache/
also just reminding you that the setting database don't show up in config.php and i don't want you like to feel i give you order or else but if we do all this the redis will be done as memcached. so we ca attack other method.
use multiple redis instance like in Redis object cache it's possible to use multiple redis one as master and the other as slave.
that's the code habitually we should add into the wp-config.php
or like setting up a cluster
https://en-ca.wordpress.org/plugins/redis-cache/
also just reminding you that the setting database don't show up in config.php and i don't want you like to feel i give you order or else but if we do all this the redis will be done as memcached. so we ca attack other method.