Komenda Redis Pfcount
Pfcount polecenie Redis zwraca szacunkową daną bazą HyperLogLog.
gramatyka
Redis Pfcount podstawowa składnia polecenia jest następująca:
redis 127.0.0.1:6379> PFCOUNT key [key ...]
dostępne wersje
> = 2.8.9
Wartość zwracana
Integer Zwraca wartość bazową HyperLogLog, a jeśli więcej niż jeden HyperLogLog wyceny podstawa i powrotnego.
Przykłady
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>