Redis Smembers 命令

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

Redis Smembers 命令返回集合中的所有的成员。 不存在的集合 key 被视为空集合。

语法

redis 127.0.0.1:6379> SMEMBERS key

返回值

集合中的所有成员。

实例

redis 127.0.0.1:6379> SADD myset1 "hello"
(integer) 1
redis 127.0.0.1:6379> SADD myset1 "world"
(integer) 1
redis 127.0.0.1:6379> SMEMBERS myset1
1) "World"
2) "Hello"

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

Invisible Users

Invisible Users

Jenna Burrell / The MIT Press / 2012-5-4 / USD 36.00

The urban youth frequenting the Internet cafes of Accra, Ghana, who are decidedly not members of their country's elite, use the Internet largely as a way to orchestrate encounters across distance and ......一起来看看 《Invisible Users》 这本书的介绍吧!

HTML 编码/解码

HTML 编码/解码

HTML 编码/解码

Base64 编码/解码

Base64 编码/解码

Base64 编码/解码

SHA 加密

SHA 加密

SHA 加密工具