mirror of
https://github.com/kennethreitz-archive/redis-docs.git
synced 2026-06-05 23:40:18 +00:00
24 lines
666 B
ReStructuredText
24 lines
666 B
ReStructuredText
`|Redis Documentation| <index.html>`_
|
||
**SpopCommand: Contents**
|
||
`SPOP \_key\_ <#SPOP%20_key_>`_
|
||
`Return value <#Return%20value>`_
|
||
SpopCommand
|
||
===========
|
||
|
||
#sidebar `SetCommandsSidebar <SetCommandsSidebar.html>`_
|
||
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 <SrandmemberCommand.html>`_ command does a similar
|
||
work butthe returned element is not removed from the Set.
|
||
|
||
Return value
|
||
------------
|
||
|
||
`Bulk reply <ReplyTypes.html>`_
|
||
.. |Redis Documentation| image:: redis.png |