PFMERGE destkey sourcekey [sourcekey ...]
Merge multiple HyperLogLog values into an unique value that will approximate the cardinality of the union of the observed Sets of the source HyperLogLog structures.
The computed merged HyperLogLog is set to the destination variable, which is created if does not exist (defaulting to an empty HyperLogLog).
If the destination variable exists, it is treated as one of the source sets and its cardinality will be included in the cardinality of the computed HyperLogLog.
Simple string reply: The command just returns
(integer) 1redis> PFADD hll2 a b c foo
(integer) 1redis> PFMERGE hll3 hll1 hll2
"OK"redis> PFCOUNT hll3
© 2009–2020 Salvatore Sanfilippo
Licensed under the Creative Commons Attribution-ShareAlike License 4.0.