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:
authorPavlo Yatsukhnenko <yatsukhnenko@gmail.com>2017-04-08 22:56:21 +0300
committerPavlo Yatsukhnenko <yatsukhnenko@gmail.com>2017-04-11 15:22:46 +0300
commitb56dc49eec94bbb9b0e26aa3d16582c3590029d6 (patch)
treea976abcc6f43414095e7e80aa4f18a6738558569 /cluster.markdown
parentd5a2da83b7ce934616c78893fa9bca7dabae6a5e (diff)
Processing `read_timeout` parameter + update docs
Diffstat (limited to 'cluster.markdown')
-rw-r--r--cluster.markdown8
1 files changed, 2 insertions, 6 deletions
diff --git a/cluster.markdown b/cluster.markdown
index 2ba3ee06..336fcc49 100644
--- a/cluster.markdown
+++ b/cluster.markdown
@@ -13,15 +13,11 @@ To maintain consistency with the RedisArray class, one can create and connect to
$obj_cluster = new RedisCluster(NULL, Array('host:7000', 'host:7001', 'host:7003'));
// Connect and specify timeout and read_timeout
-$obj_cluster = new RedisCluster(
- NULL, Array("host:7000", "host:7001"), 1.5, 1.5
-);
+$obj_cluster = new RedisCluster(NULL, Array("host:7000", "host:7001"), 1.5, 1.5);
// Connect with read/write timeout as well as specify that phpredis should use
// persistent connections to each node.
-$obj_cluster = new RedisCluster(
- NULL, Array("host:7000", "host:7001"), 1.5, 1.5, true
-);
+$obj_cluster = new RedisCluster(NULL, Array("host:7000", "host:7001"), 1.5, 1.5, true);
</pre>