YouTip LogoYouTip

Hyperloglog Pfcount

# Redis Pfcount Command * (javascript:void(0);) * (javascript:void(0);) * (javascript:void(0);) * (javascript:void(0)) Redis Tutorial (#)(#)(#)(#)(#) ## Redis Commands (#)(#)(#)(#)(#)(#)(#)(#)[Redis Publish/Subscribe](#)(#)(#)(#)(#)(#)(#) ## Redis Advanced Tutorial (#)(#)(#)(#)(#)(#)(#)(#) [](#)(#) (#)[](#) # Redis Pfcount Command !(#)(#) The Redis Pfcount command returns the cardinality estimate of the given HyperLogLog. ### Syntax The basic syntax of the redis Pfcount command is as follows: redis 127.0.0.1:6379> PFCOUNT key [key ...] ### Available Versions >= 2.8.9 ### Return Value An integer representing the cardinality estimate of the given HyperLogLog; if multiple HyperLogLogs are provided, returns the sum of their cardinality estimates. ### Example 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> !(#)(#)
← Hyperloglog PfmergeHyperloglog Pfadd β†’