redis.sadd("myset", "one", "two", "three")

assert redis.srem("myset", "one", "four") == 1

Arguments

key
str
required

The key of the set to remove the member from.

members
*List[str]

One or more members to remove from the set.

Response

How many members were removed