@@ -114,9 +114,9 @@ public function close( ) {}
114
114
/**
115
115
* Set client option.
116
116
*
117
- * @param type $name parameter name
118
- * @param type $value parameter value
119
- * @return BOOL: TRUE on success, FALSE on error.
117
+ * @param string $name parameter name
118
+ * @param string $value parameter value
119
+ * @return bool: TRUE on success, FALSE on error.
120
120
* @example
121
121
* <pre>
122
122
* $redis->setOption(Redis::OPT_SERIALIZER, Redis::SERIALIZER_NONE); // don't serialize data
@@ -130,8 +130,8 @@ public function setOption( $name, $value ) {}
130
130
/**
131
131
* Get client option
132
132
*
133
- * @param type $name parameter name
134
- * @return Parameter value.
133
+ * @param string $name parameter name
134
+ * @return Parameter value.
135
135
* @example
136
136
* // return Redis::SERIALIZER_NONE, Redis::SERIALIZER_PHP, or Redis::SERIALIZER_IGBINARY.
137
137
* $redis->getOption(Redis::OPT_SERIALIZER);
@@ -141,7 +141,7 @@ public function getOption( $name ) {}
141
141
/**
142
142
* Check the current connection status
143
143
*
144
- * @return string STRING: +PONG on success. Throws a RedisException object on connectivity error, as described above.
144
+ * @return string STRING: +PONG on success. Throws a RedisException object on connectivity error, as described above.
145
145
* @link http://redis.io/commands/ping
146
146
*/
147
147
public function ping ( ) {}
@@ -150,8 +150,8 @@ public function ping( ) {}
150
150
/**
151
151
* Get the value related to the specified key
152
152
*
153
- * @param type $key
154
- * @return string|bool: If key didn't exist, FALSE is returned. Otherwise, the value related to this key is returned.
153
+ * @param string $key
154
+ * @return string|bool: If key didn't exist, FALSE is returned. Otherwise, the value related to this key is returned.
155
155
* @link http://redis.io/commands/get
156
156
* @example $redis->get('key');
157
157
*/
@@ -161,10 +161,10 @@ public function get( $key ) {}
161
161
/**
162
162
* Set the string value in argument as value of the key.
163
163
*
164
- * @param string $key
165
- * @param string $value
166
- * @param float $timeout Calling setex() is preferred if you want a timeout.
167
- * @return bool TRUE if the command is successful.
164
+ * @param string $key
165
+ * @param string $value
166
+ * @param float $timeout Calling setex() is preferred if you want a timeout.
167
+ * @return bool: TRUE if the command is successful.
168
168
* @link http://redis.io/commands/set
169
169
* @example $redis->set('key', 'value');
170
170
*/
@@ -173,21 +173,21 @@ public function set( $key, $value, $timeout = 0.0 ) {}
173
173
/**
174
174
* Set the string value in argument as value of the key, with a time to live.
175
175
*
176
- * @param string $key
177
- * @param int $ttl
178
- * @param type $value
179
- * @return Bool TRUE if the command is successful.
176
+ * @param string $key
177
+ * @param int $ttl
178
+ * @param string $value
179
+ * @return bool: TRUE if the command is successful.
180
180
* @link http://redis.io/commands/setex
181
- * @example $redis->setex('key', 3600, 'value'); // sets key → value, with 1h TTL.
181
+ * @example $redis->setex('key', 3600, 'value'); // sets key → value, with 1h TTL.
182
182
*/
183
183
public function setex ( $ key , $ ttl , $ value ) {}
184
184
185
185
/**
186
186
* Set the string value in argument as value of the key if the key doesn't already exist in the database.
187
187
*
188
- * @param type $key
189
- * @param type $value
190
- * @return Bool TRUE in case of success, FALSE in case of failure.
188
+ * @param string $key
189
+ * @param string $value
190
+ * @return bool: TRUE in case of success, FALSE in case of failure.
191
191
* @link http://redis.io/commands/setnx
192
192
* @example
193
193
* <pre>
@@ -1566,9 +1566,9 @@ public function getRange( $key, $start, $end ) {}
1566
1566
* Return a substring of a larger string
1567
1567
*
1568
1568
* @deprecated
1569
- * @param type $key
1570
- * @param type $start
1571
- * @param type $end
1569
+ * @param string $key
1570
+ * @param int $start
1571
+ * @param int $end
1572
1572
*/
1573
1573
public function substr ( $ key , $ start , $ end ) {}
1574
1574
0 commit comments