SismemberCommand: Contents
  SISMEMBER _key_ _member_
    Return value

SismemberCommand

#sidebar SetCommandsSidebar

SISMEMBER _key_ _member_

Time complexity O(1)
Return 1 if member is a member of the set stored at key, otherwise0 is returned.

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 if the key does not exist