Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpredis/phpredis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormichael-grunder <michael.grunder@gmail.com>2016-01-06 03:41:35 +0300
committermichael-grunder <michael.grunder@gmail.com>2016-01-06 03:41:35 +0300
commit61b7f6ca4e56ee761c5a5b42d8ca0ed534778f05 (patch)
treeb6add9784439263df6fb3a47cb18f5eec17aefd1 /cluster.markdown
parent3f6469018a80e376b2cee7523cb8ae7a85de37fe (diff)
Fix docs
Diffstat (limited to 'cluster.markdown')
-rw-r--r--cluster.markdown6
1 files changed, 3 insertions, 3 deletions
diff --git a/cluster.markdown b/cluster.markdown
index 25f8e32e..2ba3ee06 100644
--- a/cluster.markdown
+++ b/cluster.markdown
@@ -60,14 +60,14 @@ By default, RedisCluster will only ever send commands to master nodes, but can b
<pre>
// The default option, only send commands to master nodes
-$obj_cluster->setOption(RedisCluster::OPT_FAILOVER, RedisCluster::FAILOVER_NONE);
+$obj_cluster->setOption(RedisCluster::OPT_SLAVE_FAILOVER, RedisCluster::FAILOVER_NONE);
// In the event we can't reach a master, and it has slaves, failover for read commands
-$obj_cluster->setOption(RedisCluster::OPT_FAILOVER, RedisCluster::FAILOVER_ERROR);
+$obj_cluster->setOption(RedisCluster::OPT_SLAVE_FAILOVER, RedisCluster::FAILOVER_ERROR);
// Always distribute readonly commands between masters and slaves, at random
$obj_cluster->setOption(
- RedisCluster::OPT_FAILOVER, RedisCluster::FAILOVER_DISTRIBUTE
+ RedisCluster::OPT_SLAVE_FAILOVER, RedisCluster::FAILOVER_DISTRIBUTE
);
</pre>