@@ -94,6 +94,8 @@ public function __construct( ) {}
94
94
* @param string $host can be a host, or the path to a unix domain socket
95
95
* @param int $port optional
96
96
* @param float $timeout value in seconds (optional, default is 0.0 meaning unlimited)
97
+ * @param null $reserved should be null if $retry_interval is specified
98
+ * @param int $retry_interval retry interval in milliseconds.
97
99
* @return bool TRUE on success, FALSE on error.
98
100
* @example
99
101
* <pre>
@@ -103,15 +105,17 @@ public function __construct( ) {}
103
105
* $redis->connect('/tmp/redis.sock'); // unix domain socket.
104
106
* </pre>
105
107
*/
106
- public function connect ( $ host , $ port = 6379 , $ timeout = 0.0 ) {}
108
+ public function connect ( $ host , $ port = 6379 , $ timeout = 0.0 , $ reserved = null , $ retry_interval = 0 ) {}
107
109
108
110
/**
109
111
* @see connect()
110
112
* @param string $host
111
113
* @param int $port
112
114
* @param float $timeout
115
+ * @param null $reserved
116
+ * @param int $retry_interval
113
117
*/
114
- public function open ( $ host , $ port = 6379 , $ timeout = 0.0 ) {}
118
+ public function open ( $ host , $ port = 6379 , $ timeout = 0.0 , $ reserved = null , $ retry_interval = 0 ) {}
115
119
116
120
/**
117
121
* Connects to a Redis instance or reuse a connection already established with pconnect/popen.
@@ -129,6 +133,8 @@ public function open( $host, $port = 6379, $timeout = 0.0 ) {}
129
133
* @param string $host can be a host, or the path to a unix domain socket
130
134
* @param int $port optional
131
135
* @param float $timeout value in seconds (optional, default is 0 meaning unlimited)
136
+ * @param string $persistent_id unique identifier string for the connection
137
+ * @param int $retry_interval retry time in milliseconds
132
138
* @return bool TRUE on success, FALSE on error.
133
139
* @example
134
140
* <pre>
@@ -138,15 +144,17 @@ public function open( $host, $port = 6379, $timeout = 0.0 ) {}
138
144
* $redis->connect('/tmp/redis.sock'); // unix domain socket.
139
145
* </pre>
140
146
*/
141
- public function pconnect ( $ host , $ port = 6379 , $ timeout = 0.0 ) {}
147
+ public function pconnect ( $ host , $ port = 6379 , $ timeout = 0.0 , $ persistent_id = '' , $ retry_interval = 0 ) {}
142
148
143
149
/**
144
150
* @see pconnect()
145
151
* @param string $host
146
152
* @param int $port
147
153
* @param float $timeout
154
+ * @param string $persistent_id
155
+ * @param int $retry_interval
148
156
*/
149
- public function popen ( $ host , $ port = 6379 , $ timeout = 0.0 ) {}
157
+ public function popen ( $ host , $ port = 6379 , $ timeout = 0.0 , $ persistent_id = '' , $ retry_interval = 0 ) {}
150
158
151
159
/**
152
160
* Disconnects from the Redis instance, except when pconnect is used.
0 commit comments