Redis Pfadd 命令

Redis 教程 · 2019-03-08 06:59:38

Redis Pfadd 命令将所有元素参数添加到 HyperLogLog 数据结构中。

语法

redis Pfadd 命令基本语法如下:

redis 127.0.0.1:6379> PFADD key element [element ...]

可用版本

>= 2.8.9

返回值

整型,如果至少有个元素被添加返回 1, 否则返回 0。

实例

redis 127.0.0.1:6379> PFADD mykey a b c d e f g h i j
(integer) 1
redis 127.0.0.1:6379> PFCOUNT mykey
(integer) 10

点击查看所有 Redis 教程 文章: https://codercto.com/courses/l/33.html

查看所有标签

Thinking Recursively

Thinking Recursively

Eric S. Roberts / Wiley / 1986-1-17 / USD 85.67

The process of solving large problems by breaking them down into smaller, more simple problems that have identical forms. Thinking Recursively: A small text to solve large problems. Concentrating on t......一起来看看 《Thinking Recursively》 这本书的介绍吧!

html转js在线工具
html转js在线工具

html转js在线工具

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具