8000 Updated readme with new persistent_id information on pconnect · jrtkcoder/phpredis@0aa69e7 · GitHub
[go: up one dir, main page]

Skip to content

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0aa69e7

Browse files
committed
Updated readme with new persistent_id information on pconnect
1 parent 7713cc5 commit 0aa69e7

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.markdown

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ So be patient on to many open FD's (specially on redis server side) when using p
108108
connections on many servers connecting to one redis server.
109109

110110
Also more than one persistent connection can be made identified by either host + port + timeout
111-
or unix socket + timeout.
111+
or host + persistent_id or unix socket + timeout.
112112

113113
This feature is not available in threaded versions. `pconnect` and `popen` then working like their non
114114
persistent equivalents.
@@ -118,6 +118,7 @@ persistent equivalents.
118118
*host*: string. can be a host, or the path to a unix domain socket
119119
*port*: int, optional
120120
*timeout*: float, value in seconds (optional, default is 0 meaning unlimited)
121+
*persistent_id*: string. identity for the requested persistent connection
121122

122123
##### *Return Value*
123124

@@ -128,8 +129,9 @@ persistent equivalents.
128129
<pre>
129130
$redis->pconnect('127.0.0.1', 6379);
130131
$redis->pconnect('127.0.0.1'); // port 6379 by default - same connection like before.
131-
$redis->pconnect('127.0.0.1', 6379, 2.5); // 2.5 sec timeout and would be another connection then the two before.
132-
$redis->pconnect('/tmp/redis.sock'); // unix domain socket - would be another connection then the three before.
132+
$redis->pconnect('127.0.0.1', 6379, 2.5); // 2.5 sec timeout and would be another connection than the two before.
133+
$redis->pconnect('127.0.0.1', 6379, 2.5, 'x'); // x is sent as persistent_id and would be another connection the the three before.
134+
$redis->pconnect('/tmp/redis.sock'); // unix domain socket - would be another connection than the four before.
133135
</pre>
134136

135137
## close

0 commit comments

Comments
 (0)
0