Hyperloglog Pfmerge
# Redis PFMERGE Command
* (javascript:void(0);)
* (javascript:void(0);)
* (javascript:void(0);)
* (javascript:void(0))
Redis Tutorial
(#)(#)(#)(#)(#)
## Redis Commands
(#)(#)(#)(#)(#)(#)(#)(#)[Redis Publish/Subscribe](#)(#)(#)(#)(#)(#)(#)
## Redis Advanced Tutorial
(#)(#)(#)(#)(#)(#)(#)(#)
[](#)(#)
[Redis Publish/Subscribe](#)[](#)
Deep Dive
Scripts
Programming
Scripting Languages
Web
Data Management
Development Tools
Web Services
Search
Web Service
Computer Science
# Redis PFMERGE Command
!(#)(#)
The Redis PFMERGE command merges multiple HyperLogLogs into a single HyperLogLog. The cardinality estimate of the resulting HyperLogLog is derived by computing the union of all given HyperLogLogs.
### Syntax
The basic syntax of the redis PFMERGE command is as follows:
PFMERGE destkey sourcekey [sourcekey ...]
### Available Versions
>= 2.8.9
### Return Value
Returns OK.
### Example
redis> PFADD hll1 foo bar zap a (integer) 1 redis> PFADD hll2 a b c foo (integer) 1 redis> PFMERGE hll3 hll1 hll2 "OK" redis> PFCOUNT hll3 (integer) 6 redis>
!(#)(#)
YouTip