X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/924aa408b99837036b679bd3895f836af6bc763f..7fc98533392f455974d546c88bd4d41c85e6fe6d:/doc/SaddCommand.html diff --git a/doc/SaddCommand.html b/doc/SaddCommand.html index 3c50a708..57c2dfad 100644 --- a/doc/SaddCommand.html +++ b/doc/SaddCommand.html @@ -16,7 +16,7 @@
-SaddCommand: Contents
  SADD _key_ _member_
    Return value
    See also +SaddCommand: Contents
  SADD _key_ _member_
    Return value

SaddCommand

@@ -26,13 +26,12 @@
-

SADD _key_ _member_

-Time complexity O(1)
Add the specified member to the set value stored at key. If memberis already a member of the set no operation is performed. If keydoes not exist a new set with the specified member as sole member iscrated. If the key exists but does not hold a set value an error isreturned.
+ #sidebar SetCommandsSidebar

SADD _key_ _member_

+Time complexity O(1)
Add the specified member to the set value stored at key. If memberis already a member of the set no operation is performed. If keydoes not exist a new set with the specified member as sole member iscreated. If the key exists but does not hold a set value an error isreturned.

Return value

Integer reply, specifically:

 1 if the new element was added
 0 if the element was already a member of the set
-

See also

- +