Redis – HyperLogLog Pfadd Command

  • Post author:
  • Post category:Redis
  • Post comments:1 Comment

Redis PFADD command adds all the element arguments to the HyperLogLog data structure stored at the key name specified as first argument.

Return Value

Integer reply, 1 or 0.

Syntax

Following is the basic syntax of Redis PFADD command.

redis 127.0.0.1:6379> PFADD KEY_NAME ELEMENTS_TO_BE_ADDED

Example

redis 127.0.0.1:6379> PFADD mykey a b c d e f g h i j 
(integer) 1 
redis 127.0.0.1:6379> PFCOUNT mykey 
(integer) 10 

This Post Has One Comment

Leave a Reply