PFMERGE

Since 1.1.0HyperLogLog

Syntax

PFMERGE destkey [sourcekey [sourcekey ...]]
  • Flags: write
  • ACL categories: @hyperloglog, @slow, @write
  • Arity: -2

Merges the HyperLogLogs at the source keys into destkey, so that it estimates their union. A missing source is empty.

Reply

  • OK.

Examples

> PFADD h a b c d
(integer) 1
> PFADD h2 c d e f
(integer) 1
> PFMERGE m h h2
OK
> PFCOUNT m
(integer) 6