SMEMBERS
Synopsis
SMEMBERS key
This command selects all members of the set that is associated with the given key
.
- If
key
is associated with a value that is not a set, an error is raised. - If
key
does not exist, no value is returned.
Return value
Returns all members of the given set.
Examples
$ SADD yuga_world "Africa"
1
$ SADD yuga_world "America"
1
$ SMEMBERS yuga_world
1) "Africa"
2) "America"
See also
当前内容版权归 YugabyteDB 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 YugabyteDB .