@@ -50,8 +50,8 @@ class Redis
50
50
/**
51
51
* Multi
52
52
*/
53
- const MULTI = '' ;
54
- const PIPELINE = '' ;
53
+ const MULTI = 0 ;
54
+ const PIPELINE = 1 ;
55
55
56
56
/**
57
57
* Type
@@ -253,7 +253,7 @@ public function delete( $key1, $key2 = null, $key3 = null ) {}
253
253
/**
254
254
* Enter and exit transactional mode.
255
255
*
256
- * @internal param Redis::MULTI|Redis::PIPELINE
256
+ * @param int Redis::MULTI|Redis::PIPELINE
257
257
* Defaults to Redis::MULTI.
258
258
* A Redis::MULTI block of commands runs as a single transaction;
259
259
* a Redis::PIPELINE block is simply transmitted faster to the server, but without any guarantee of atomicity.
@@ -277,7 +277,7 @@ public function delete( $key1, $key2 = null, $key3 = null ) {}
277
277
* // 3 => 'val2');
278
278
* </pre>
279
279
*/
280
- public function multi ( ) {}
280
+ public function multi ( $ mode = Redis:: MULTI ) {}
281
281
282
282
/**
283
283
* @see multi()
@@ -719,7 +719,6 @@ public function lLen( $key ) {}
719
719
/**
720
720
* @see lLen()
721
721
* @param string $key
722
- * @param int $index
723
722
* @link http://redis.io/commands/llen
724
723
*/
725
724
public function lSize ( $ key ) {}
@@ -1450,7 +1449,7 @@ public function expire( $key, $ttl ) {}
1450
1449
* Sets an expiration date (a timeout in milliseconds) on an item.
1451
1450
*
1452
1451
* @param string $key The key that will disappear.
1453
- * @param int $pttl The key's remaining Time To Live, in milliseconds.
1452
+ * @param int $ttl The key's remaining Time To Live, in milliseconds.
1454
1453
* @return bool: TRUE in case of success, FALSE in case of failure.
1455
1454
* @link http://redis.io/commands/pexpire
1456
1455
* @example
@@ -1781,6 +1780,7 @@ public function bitCount( $key ) {}
1781
1780
* @param string $retKey return key
1782
1781
* @param string $key1
1783
1782
* @param string $key2
1783
+ * @param string $key3
1784
1784
* @return int The size of the string stored in the destination key.
1785
1785
* @link http://redis.io/commands/bitop
1786
1786
* @example
@@ -2971,7 +2971,7 @@ public function _hosts() {}
2971
2971
public function _function () {}
2972
2972
2973
2973
/**
2974
- * @param string key The key for which you want to lookup the host
2974
+ * @param string $ key The key for which you want to lookup the host
2975
2975
* @return string the host to be used for a certain key
2976
2976
*/
2977
2977
public function _target ($ key ) {}
0 commit comments