SMEMBERS

Syntax
SMEMBERS key
Available since:
1.0.0
Time complexity:
O(N) where N is the set cardinality.
ACL categories:
@read, @set, @slow,

返回存储在key中的集合值的所有成员。

这与使用一个参数key运行SINTER具有相同的效果。

示例

SADD myset "Hello" SADD myset "World" SMEMBERS myset

RESP2 回复

Array reply: an array with all the members of the set.

RESP3 回复

Set reply: a set with all the members of the set.
RATE THIS PAGE
Back to top ↑