pfadd
PFADD
Apply for Redis Developer Course
|
Redis Regular Inspection / Technical Support
|
Redis Enterprise Server
|
|---|
Add elements
Usage: pfadd key ele1 ele2.
If at least one new element is added, it returns 1 regardless of the number of elements; if the elements already exist, it returns 0.
Example
| Command> | PFADD hllkey ele1 ele2 ele3 |
| Result> | (integer) 1 |
| Command> | PFADD hllkey ele4 ele5 ele6 |
| Result> | (integer) 1 |
| Command> | PFCOUNT hllkey |
| Result> | (integer) 6 |
Syntax
PFADD key element [element ...]
- Available since version 2.8.9.
- Time complexity is O(1).
| << HyperLogLog Introduction | PFADD | PFCOUNT >> |
|---|
Email
답글이 올라오면 이메일로 알려드리겠습니다.
