English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
The Redis PFMERGE command merges multiple HyperLogLog into one HyperLogLog, and the estimated cardinality of the merged HyperLogLog is calculated by taking the union of all Given HyperLogLog for the union calculation.
Basic syntax of the redis PFMERGE command is as follows:
PFMERGE destkey sourcekey [sourcekey ...]
>= 2.8.9
Return OK.
redis> PFADD hll1 foo bar zap a (integer) 1 redis> PFADD hll2 a b c foo (integer) 1 redis> PFMERGE hll3 hll1 hll2 "OK" redis> PFCOUNT hll3 (integer) 6 redis>