PFADD command in redis

PFADD key element [element ...]

This command adds the specified element to the specified HyperLogLog.

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

RETURN VALUE: Integer reply, 1 or 0.

Syntax:

PFADD key element [element ...]

Example

redis:6379> PFADD mykey a b c d e f g h
(integer) 1

Output

1

No comments:

Post a Comment