English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
The Redis Pfcount command returns the estimated base value of the given HyperLogLog.
Basic Syntax of Redis Pfcount Command:
redis 127.0.0.1:6379> PFCOUNT key [key ...]
>= 2.8.9
Integer, returns the base value of the given HyperLogLog, or the sum of base estimates if multiple HyperLogLogs are given.
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>