Redis Pfcount command
Redis Pfcount command returns an estimate given HyperLogLog base.
grammar
redis Pfcount basic command syntax is as follows:
redis 127.0.0.1:6379> PFCOUNT key [key ...]
Available versions
> = 2.8.9
return value
Integer Returns the HyperLogLog base value, and if more than one HyperLogLog the base valuation and return.
Examples
redis 127.0.0.1:6379> PFADD hll foo bar zap (integer) 1 redis 127.0.0.1:6379> PFADD hll zap zap zap (integer) 0 redis 127.0.0.1:6379> PFADD hll foo bar (integer) 0 redis 127.0.0.1:6379> PFCOUNT hll (integer) 3 redis 127.0.0.1:6379> PFADD some-other-hll 1 2 3 (integer) 1 redis 127.0.0.1:6379> PFCOUNT hll some-other-hll (integer) 6 redis>