Latest web development tutorials

Redis Pgmerge command

Redis HyperLogLog

Redis Pgmerge command multiple HyperLogLog into one HyperLogLog, HyperLogLog cardinality estimates combined through all given HyperLogLog be calculated and set.

grammar

redis Pgmerge basic command syntax is as follows:

redis 127.0.0.1:6379> PFMERGE destkey sourcekey [sourcekey ...]

Available versions

> = 2.8.9

return value

Back OK.

Examples

redis 127.0.0.1:6379> PFADD hll1 foo bar zap a
(integer) 1
redis 127.0.0.1:6379> PFADD hll2 a b c foo
(integer) 1
redis 127.0.0.1:6379> PFMERGE hll3 hll1 hll2
OK
redis 127.0.0.1:6379> PFCOUNT hll3
(integer) 6
redis> 

Redis HyperLogLog