Redis PFMERGE命令用於將多個HyperLogLog值轉換成一個唯一的值將接近源HyperLogLog結構遵守集合併集的基數。
返回簡單的字串:OK
redis PFMERGE命令的基本語法如下所示:
redis 127.0.0.1:6379> PFMERGE KEY1 KEY@... KEYN
redis 127.0.0.1:6379> PFADD hll1 foo bar zap a (integer) 1 redis 127.0.0.1:6379> PFADD hll2 a b c foo (integer) 1 redis 127.0.0.1:6379> PFMERGE hll3 hll1 hll2 OK redis 127.0.0.1:6379> PFCOUNT hll3 (integer) 6