SISMEMBER
SISMEMBER key member
- Available since
- 1.0.0
- Time complexity
- O(1)
- ACL categories
- @read, @set, @fast
Returns if member
is a member of the set stored at key
.
Examples #
SADD myset "one"
SISMEMBER myset "one"
SISMEMBER myset "two"
SISMEMBER key member
Returns if member
is a member of the set stored at key
.
SADD myset "one"
SISMEMBER myset "one"
SISMEMBER myset "two"