AttentionThis page documents an earlier version. Go to the latest (v2.3) version.
SISMEMBER key member_value
This command is a predicate for whether or not a value is a member of a set that is associated with the given
Returns 1 if the specified member exists. Returns 0 otherwise.
$ SADD yuga_world "America"
$ SISMEMBER yuga_world "America"
$ SISMEMBER yuga_world "Moon"