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:42:08 +0300
commit6d634254bd1e2043bf456ae0774b9879b4041bc3 (patch)
tree85a00a28c1275fc6bb0194610a8db97a4f819376
parent3c048f1236bf97cd751921ab0841aeff2597afbe (diff)
Fix docs
-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>