PFADD
Since 1.1.0HyperLogLog
Syntax
PFADD key [element [element ...]]Adds elements to the HyperLogLog at key: a structure of fixed size that estimates how many different elements it has been given, however many that is. With its 16,384 registers, as in Redis, the estimate's standard error is about 0.81%. A missing key is created, even with no elements.
Reply
1if the HyperLogLog changed (its estimate may have),0if not.WRONGTYPE Key is not a valid HyperLogLog string valueif the key holds a string that is not a HyperLogLog.
Examples
> PFADD h a b c d
(integer) 1
> PFADD h a
(integer) 0
> PFCOUNT h
(integer) 4