Removes and returns one or more random members from a set.
redis.sadd("myset", "one", "two", "three") assert redis.spop("myset") in {"one", "two", "three"}
The key of the set.
How many members to remove and return.
The popped member. If count is specified, a set of members is returned.
count
Was this page helpful?