Skip to content

Commit 6227a26

Browse files
committed
Bugfix with stores
1 parent 1f043e8 commit 6227a26

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

redisphp.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -978,7 +978,7 @@ public function sRandMember($key) {}
978978
* @param string $keyN ...
979979
* @return array, contain the result of the intersection between those keys.
980980
* If the intersection between the different sets is empty, the return value will be empty array.
981-
* @link http://redis.io/commands/sinter
981+
* @link http://redis.io/commands/sinterstore
982982
* @example
983983
* <pre>
984984
* $redis->sAdd('key1', 'val1');
@@ -1048,7 +1048,7 @@ public function sInterStore($dstKey, $key1, $key2, $keyN) {}
10481048
* @param string $key2 ...
10491049
* @param string $keyN ...
10501050
* @return array of strings: The union of all these sets.
1051-
* @link http://redis.io/commands/sunion
1051+
* @link http://redis.io/commands/sunionstore
10521052
* @example
10531053
* <pre>
10541054
* $redis->delete('s0', 's1', 's2');
@@ -2143,7 +2143,7 @@ public function zIncrBy($key, $value, $member) {}
21432143
* @param string $aggregateFunction Either "SUM", "MIN", or "MAX": defines the behaviour to use on
21442144
* duplicate entries during the zUnion.
21452145
* @return int The number of values in the new sorted set.
2146-
* @link http://redis.io/commands/zunion
2146+
* @link http://redis.io/commands/zunionstore
21472147
* @example
21482148
* <pre>
21492149
* $redis->delete('k1');
@@ -2166,7 +2166,7 @@ public function zIncrBy($key, $value, $member) {}
21662166
* $redis->zUnion('ko3', array('k1', 'k2'), array(5, 1)); // 4, 'ko1' => array('val0', 'val2', 'val3', 'val1')
21672167
* </pre>
21682168
*/
2169-
public function zUnion($Output, $ZSetKeys, $Weights, $aggregateFunction) {}
2169+
public function zUnion($Output, $ZSetKeys, $Weights = 1, $aggregateFunction = 'SUM') {}
21702170

21712171
/**
21722172
* Creates an intersection of sorted sets given in second argument.
@@ -2182,7 +2182,7 @@ public function zUnion($Output, $ZSetKeys, $Weights, $aggregateFunction) {}
21822182
* @param string $aggregateFunction Either "SUM", "MIN", or "MAX":
21832183
* defines the behaviour to use on duplicate entries during the zInter.
21842184
* @return int The number of values in the new sorted set.
2185-
* @link http://redis.io/commands/zinter
2185+
* @link http://redis.io/commands/zinterstore
21862186
* @example
21872187
* <pre>
21882188
* $redis->delete('k1');
@@ -2209,7 +2209,7 @@ public function zUnion($Output, $ZSetKeys, $Weights, $aggregateFunction) {}
22092209
* $redis->zInter('ko4', array('k1', 'k2'), array(1, 5), 'max'); // 2, 'ko4' => array('val3', 'val1')
22102210
* </pre>
22112211
*/
2212-
public function zInter($Output, $ZSetKeys, $Weights, $aggregateFunction) {}
2212+
public function zInter($Output, $ZSetKeys, $Weights = 1, $aggregateFunction = 'SUM') {}
22132213

22142214
/**
22152215
* Adds a value to the hash stored at key. If this value is already in the hash, FALSE is returned.

0 commit comments

Comments
 (0)