File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -3160,6 +3160,22 @@ public function pfAdd( $key, array $elements ) {}
3160
3160
* $redis->pfCount(array('key1', 'key2')); // int(3)
3161
3161
*/
3162
3162
public function pfCount ( $ key ) {}
3163
+
3164
+ /**
3165
+ * Merge multiple HyperLogLog values into an unique value that will approximate the cardinality
3166
+ * of the union of the observed Sets of the source HyperLogLog structures.
3167
+ * @param string $destkey
3168
+ * @param array $sourcekeys
3169
+ * @return bool
3170
+ * @link http://redis.io/commands/pfmerge
3171
+ * @example
3172
+ * <pre>
3173
+ * $redis->pfAdd('key1', array('elem1', 'elem2'));
3174
+ * $redis->pfAdd('key2', array('elem3', 'elem2'));
3175
+ * $redis->pfMerge('key3', array('key1', 'key2'));
3176
+ * $redis->pfCount('key3'); // int(3)
3177
+ */
3178
+ public function pfMerge ( $ destkey , array $ sourcekeys ) {}
3163
3179
}
3164
3180
3165
3181
class RedisException extends Exception {}
You can’t perform that action at this time.
0 commit comments