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