Set
SPOP
Removes and returns one or more random members from a set.
Arguments
key
str
requiredThe key of the set.
count
int
How many members to remove and return.
Response
The popped member.
If count
is specified, a set of members is returned.
Was this page helpful?