X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/7492bbe9f52a655bac2480f069083aaf220ac01b..4b53e7365c647235bbb3909596a7defe50709b67:/doc/SpopCommand.html?ds=sidebyside diff --git a/doc/SpopCommand.html b/doc/SpopCommand.html index 9819a60c..0a943c65 100644 --- a/doc/SpopCommand.html +++ b/doc/SpopCommand.html @@ -16,7 +16,7 @@
-SpopCommand: Contents
  SPOP _key_
    Return value
    See also +SpopCommand: Contents
  SPOP _key_
    Return value

SpopCommand

@@ -26,10 +26,11 @@
-

SPOP _key_

-Time complexity O(1)
Pop a random element from a Set, and return it to the caller. If the key does not exist or if the key contains an empty Set a special 'nil' value is returned.
-

Return value

bulk reply

See also

- + #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 +