SpopCommand: Contents
  SPOP _key_
    Return value

SpopCommand

#sidebar SetCommandsSidebar

SPOP _key_

Time complexity O(1)
Remove a random element from a Set returning it as return value.If the Set is empty or the key does not exist, a nil object is returned.
The SRANDMEMBER command does a similar work butthe returned element is not removed from the Set.

Return value

Bulk reply