SMEMBERS
语法
SMEMBERS key
- 从以下位置开始可用:
- 1.0.0
- 时间复杂度:
- O(N),其中 N 是设置的基数。
- ACL 类别:
-
@read,@set,@slow,
返回存储在key.
这与运行SINTER带一个参数key.
例子
Give these commands a try in the interactive console:
RESP2 Reply
Array reply: an array with all the members of the set.
RESP3 Reply
Set reply: a set with all the members of the set.