pfmerge
PFMERGE
Apply for Redis Developer Course
|
Redis Regular Inspection / Technical Support
|
Redis Enterprise Server
|
|---|
Merge two or more HyperLogLogs
Usage: pfmerge dest_key source_key1 [source_key2 ...].
Merges two or more HyperLogLogs into one.
Example
| Command> | PFADD hllkey1 ele1 ele2 ele3 |
| Result> | (integer) 1 |
| Command> | PFADD hllkey2 ele4 ele5 ele6 |
| Result> | (integer) 1 |
| Command> | PFMERGE hllkey3 hllkey1 hllkey2 |
| Result> | OK |
| Command> | PFCOUNT hllkey3 |
| Result> | (integer) 6 |
Syntax
PFMERGE dest_key source_key1 [source_key2 ...]
- Available since version 2.8.9.
- Time complexity is O(N).
| << PFCOUNT | PFMERGE | Geo Introduction >> |
|---|
Email
답글이 올라오면 이메일로 알려드리겠습니다.
