Arguments
str
required
The key of the set to check.
str
The member to check for.
Response
True if the member exists in the set, False if not.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
redis.sadd("set", "a", "b", "c")
assert redis.sismember("set", "a") == True
Check if a member exists in a set
True if the member exists in the set, False if not.redis.sadd("set", "a", "b", "c")
assert redis.sismember("set", "a") == True
Was this page helpful?