Redis Sismember 命令

更新时间: 2019-07-07 15:54

Redis Sismember 命令判断成员元素是否是集合的成员。

语法

redis 127.0.0.1:6379> SISMEMBER KEY VALUE 

返回值

如果成员元素是集合的成员,返回 1 。 如果成员元素不是集合的成员,或 key 不存在,返回 0 。

实例

redis 127.0.0.1:6379> SADD myset1 "hello"
(integer) 1
redis 127.0.0.1:6379> SISMEMBER myset1 "hello"
(integer) 1
redis 127.0.0.1:6379> SISMEMBER myset1 "world"
(integer) 0

查看更多 Redis 集合(Set)命令

Professional JavaScript for Web Developers

Professional JavaScript for Web Developers

Nicholas C. Zakas / Wrox / 2009-1-14 / USD 49.99

This eagerly anticipated update to the breakout book on JavaScript offers you an in-depth look at the numerous advances to the techniques and technology of the JavaScript language. You'll see why Java......一起来看看 《Professional JavaScript for Web Developers》 这本书的介绍吧!

Base64 编码/解码

Base64 编码/解码

Base64 编码/解码

URL 编码/解码

URL 编码/解码

URL 编码/解码

HSV CMYK 转换工具

HSV CMYK 转换工具

HSV CMYK互换工具