Returns if member
is a member of the set stored at key
.
*Return value
Integer reply, specifically:
1
if the element is a member of the set.0
if the element is not a member of the set, or ifkey
does not exist.
*Examples
redis>
SADD myset "one"
(integer) 1redis> SISMEMBER myset "one"
(integer) 1redis> SISMEMBER myset "two"
(integer) 0