修改本页
Redis

SISMEMBER key member

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

返回值

Integer reply, specifically:

例子

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