Check if a member exists in a set
redis.sadd("set", "a", "b", "c") assert redis.sismember("set", "a") == True
The key of the set to check.
The member to check for.
True if the member exists in the set, False if not.
True
False
Was this page helpful?