Redis

SISMEMBER key member

Returns if member is a member of the set stored at key.

Return value

Integer reply, specifically:

Examples

redis>  SADD myset "one"
(integer) 1
redis>  SISMEMBER myset "one"
(integer) 1
redis>  SISMEMBER myset "two"
(integer) 0
redis> 
Comments powered by Disqus