@@ -978,7 +978,7 @@ public function sRandMember($key) {}
978
978
* @param string $keyN ...
979
979
* @return array, contain the result of the intersection between those keys.
980
980
* 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
982
982
* @example
983
983
* <pre>
984
984
* $redis->sAdd('key1', 'val1');
@@ -1048,7 +1048,7 @@ public function sInterStore($dstKey, $key1, $key2, $keyN) {}
1048
1048
* @param string $key2 ...
1049
1049
* @param string $keyN ...
1050
1050
* @return array of strings: The union of all these sets.
1051
- * @link http://redis.io/commands/sunion
1051
+ * @link http://redis.io/commands/sunionstore
1052
1052
* @example
1053
1053
* <pre>
1054
1054
* $redis->delete('s0', 's1', 's2');
@@ -2143,7 +2143,7 @@ public function zIncrBy($key, $value, $member) {}
2143
2143
* @param string $aggregateFunction Either "SUM", "MIN", or "MAX": defines the behaviour to use on
2144
2144
* duplicate entries during the zUnion.
2145
2145
* @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
2147
2147
* @example
2148
2148
* <pre>
2149
2149
* $redis->delete('k1');
@@ -2166,7 +2166,7 @@ public function zIncrBy($key, $value, $member) {}
2166
2166
* $redis->zUnion('ko3', array('k1', 'k2'), array(5, 1)); // 4, 'ko1' => array('val0', 'val2', 'val3', 'val1')
2167
2167
* </pre>
2168
2168
*/
2169
- public function zUnion ($ Output , $ ZSetKeys , $ Weights , $ aggregateFunction ) {}
2169
+ public function zUnion ($ Output , $ ZSetKeys , $ Weights = 1 , $ aggregateFunction = ' SUM ' ) {}
2170
2170
2171
2171
/**
2172
2172
* Creates an intersection of sorted sets given in second argument.
@@ -2182,7 +2182,7 @@ public function zUnion($Output, $ZSetKeys, $Weights, $aggregateFunction) {}
2182
2182
* @param string $aggregateFunction Either "SUM", "MIN", or "MAX":
2183
2183
* defines the behaviour to use on duplicate entries during the zInter.
2184
2184
* @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
2186
2186
* @example
2187
2187
* <pre>
2188
2188
* $redis->delete('k1');
@@ -2209,7 +2209,7 @@ public function zUnion($Output, $ZSetKeys, $Weights, $aggregateFunction) {}
2209
2209
* $redis->zInter('ko4', array('k1', 'k2'), array(1, 5), 'max'); // 2, 'ko4' => array('val3', 'val1')
2210
2210
* </pre>
2211
2211
*/
2212
- public function zInter ($ Output , $ ZSetKeys , $ Weights , $ aggregateFunction ) {}
2212
+ public function zInter ($ Output , $ ZSetKeys , $ Weights = 1 , $ aggregateFunction = ' SUM ' ) {}
2213
2213
2214
2214
/**
2215
2215
* Adds a value to the hash stored at key. If this value is already in the hash, FALSE is returned.
0 commit comments