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 /README.markdown
parentd5a2da83b7ce934616c78893fa9bca7dabae6a5e (diff)
Processing `read_timeout` parameter + update docs
Diffstat (limited to 'README.markdown')
-rw-r--r--README.markdown4
1 files changed, 3 insertions, 1 deletions
diff --git a/README.markdown b/README.markdown
index 98df2278..7c8e2fba 100644
--- a/README.markdown
+++ b/README.markdown
@@ -82,7 +82,7 @@ You can install install it using Homebrew:
phpredis can be used to store PHP sessions. To do this, configure `session.save_handler` and `session.save_path` in your php.ini to tell phpredis where to store the sessions:
~~~
session.save_handler = redis
-session.save_path = "tcp://host1:6379?weight=1, tcp://host2:6379?weight=2&timeout=2.5, tcp://host3:6379?weight=2"
+session.save_path = "tcp://host1:6379?weight=1, tcp://host2:6379?weight=2&timeout=2.5, tcp://host3:6379?weight=2&read_timeout=2.5"
~~~
`session.save_path` can have a simple `host:port` format too, but you need to provide the `tcp://` scheme if you want to use the parameters. The following parameters are available:
@@ -202,6 +202,7 @@ _**Description**_: Connects to a Redis instance.
*timeout*: float, value in seconds (optional, default is 0 meaning unlimited)
*reserved*: should be NULL if retry_interval is specified
*retry_interval*: int, value in milliseconds (optional)
+*read_timeout*: float, value in seconds (optional, default is 0 meaning unlimited)
##### *Return value*
@@ -238,6 +239,7 @@ persistent equivalents.
*timeout*: float, value in seconds (optional, default is 0 meaning unlimited)
*persistent_id*: string. identity for the requested persistent connection
*retry_interval*: int, value in milliseconds (optional)
+*read_timeout*: float, value in seconds (optional, default is 0 meaning unlimited)
##### *Return value*