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

查看所有标签

The Art and Science of CSS

The Art and Science of CSS

Jonathan Snooks、Steve Smith、Jina Bolton、Cameron Adams、David Johnson / SitePoint / March 9, 2007 / $39.95

Want to take your CSS designs to the next level? will show you how to create dozens of CSS-based Website components. You'll discover how to: # Format calendars, menus and table of contents usin......一起来看看 《The Art and Science of CSS》 这本书的介绍吧!

SHA 加密
SHA 加密

SHA 加密工具

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具