X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/924aa408b99837036b679bd3895f836af6bc763f..49128f0b9da725de992e427fa341a837bcc2991b:/doc/ZaddCommand.html diff --git a/doc/ZaddCommand.html b/doc/ZaddCommand.html index d798eb2b..fa4c8950 100644 --- a/doc/ZaddCommand.html +++ b/doc/ZaddCommand.html @@ -16,7 +16,7 @@
-ZaddCommand: Contents
  ZADD _key_ _score_ _member_ (Redis >
    Return value
    See also +ZaddCommand: Contents
  ZADD _key_ _score_ _member_ (Redis >
    Return value

ZaddCommand

@@ -26,15 +26,14 @@
-

ZADD _key_ _score_ _member_ (Redis >

1.1) = + #sidebar SortedSetCommandsSidebar

ZADD _key_ _score_ _member_ (Redis >

1.1) = Time complexity O(log(N)) with N being the number of elements in the sorted set
Add the specified member having the specifeid score to the sortedset stored at key. If member is already a member of the sorted setthe score is updated, and the element reinserted in the right position toensure sorting. If key does not exist a new sorted set with the specified_member_ as sole member is crated. If the key exists but does not hold asorted set value an error is returned.
The score value can be the string representation of a double precision floatingpoint number.
-
For an introduction to sorted sets check the Redis sorted sets page.
+
For an introduction to sorted sets check the Introduction to Redis data types page.

Return value

Integer reply, specifically:

 1 if the new element was added
 0 if the element was already a member of the sorted set and the score was updated
-

See also

- +