summaryrefslogtreecommitdiffstats
path: root/iredis/data/commands/zincrby.md
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2020-03-21 10:28:17 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2021-02-07 11:16:53 +0000
commit06cba6ccd165ca8b224797e37fccb9e63f026d77 (patch)
treee82f1bc439997ae296f2e74f8a64d84c5d95f140 /iredis/data/commands/zincrby.md
parentInitial commit. (diff)
downloadiredis-06cba6ccd165ca8b224797e37fccb9e63f026d77.tar.xz
iredis-06cba6ccd165ca8b224797e37fccb9e63f026d77.zip
Adding upstream version 1.9.1.upstream/1.9.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'iredis/data/commands/zincrby.md')
-rw-r--r--iredis/data/commands/zincrby.md25
1 files changed, 25 insertions, 0 deletions
diff --git a/iredis/data/commands/zincrby.md b/iredis/data/commands/zincrby.md
new file mode 100644
index 0000000..0ac8a89
--- /dev/null
+++ b/iredis/data/commands/zincrby.md
@@ -0,0 +1,25 @@
+Increments the score of `member` in the sorted set stored at `key` by
+`increment`. If `member` does not exist in the sorted set, it is added with
+`increment` as its score (as if its previous score was `0.0`). If `key` does not
+exist, a new sorted set with the specified `member` as its sole member is
+created.
+
+An error is returned when `key` exists but does not hold a sorted set.
+
+The `score` value should be the string representation of a numeric value, and
+accepts double precision floating point numbers. It is possible to provide a
+negative value to decrement the score.
+
+@return
+
+@bulk-string-reply: the new score of `member` (a double precision floating point
+number), represented as string.
+
+@examples
+
+```cli
+ZADD myzset 1 "one"
+ZADD myzset 2 "two"
+ZINCRBY myzset 2 "one"
+ZRANGE myzset 0 -1 WITHSCORES
+```