diff options
author | Emmanuel Merali <emmanuel@mobli.com> | 2013-02-25 02:38:47 +0400 |
---|---|---|
committer | Emmanuel Merali <emmanuel@mobli.com> | 2013-02-25 02:38:47 +0400 |
commit | acd324545685e3368bd8d9c626e7e019d4cdeb79 (patch) | |
tree | f9bba2226073d4c8c6eb5c8014476e70786f8710 /README.markdown | |
parent | 4ae635fddf7839c0e8282bcaa36bada2756eeacd (diff) |
Added lazy_connect option to RedisArray
Added an option to let each RedisArray connection connect lazily to
their respective server. This is useful then working with a redis
cluster composed of many shards which are not necessarily in use all at
once.
Diffstat (limited to 'README.markdown')
-rw-r--r-- | README.markdown | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/README.markdown b/README.markdown index bd5a067b..b0ee36f7 100644 --- a/README.markdown +++ b/README.markdown @@ -164,6 +164,8 @@ _**Description**_: Connects to a Redis instance. *host*: string. can be a host, or the path to a unix domain socket *port*: int, optional *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) ##### *Return value* @@ -176,6 +178,7 @@ $redis->connect('127.0.0.1', 6379); $redis->connect('127.0.0.1'); // port 6379 by default $redis->connect('127.0.0.1', 6379, 2.5); // 2.5 sec timeout. $redis->connect('/tmp/redis.sock'); // unix domain socket. +$redis->connect('127.0.0.1', 6379, 1, NULL, 100); // 1 sec timeout, 100ms delay between reconnection attempts. ~~~ ### pconnect, popen @@ -198,6 +201,7 @@ persistent equivalents. *port*: int, optional *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) ##### *Return value* |