File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ Connects to a Redis instance or reuse a connection already established with `pco
94
94
95
95
The connection will not be closed on ` close ` or end of request until the php process ends.
96
96
So be patient on to many open FD's (specially on redis server side) when using persistent
97
- connections on many servers connection to one redis server.
97
+ connections on many servers connecting to one redis server.
98
98
99
99
Also more than one persistent connection can be made identified by either host + port + timeout
100
100
or unix socket + timeout.
@@ -115,7 +115,7 @@ persistent equivalents.
115
115
##### * Example*
116
116
117
117
$redis->pconnect('127.0.0.1', 6379);
118
- $redis->pconnect('127.0.0.1'); // port 6379 by default
118
+ $redis->pconnect('127.0.0.1'); // port 6379 by default - same connection like before.
119
119
$redis->pconnect('127.0.0.1', 6379, 2.5); // 2.5 sec timeout and would be another connection then the two before.
120
120
$redis->pconnect('/tmp/redis.sock'); // unix domain socket - would be another connection then the three before.
121
121
You can’t perform that action at this time.
0 commit comments