X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/a4460ef43f9625e6c09cdc327614d1b47c043489..12ebe2ac17a26ecf263f90b2acdf03db29b00223:/doc/HincrbyCommand.html diff --git a/doc/HincrbyCommand.html b/doc/HincrbyCommand.html new file mode 100644 index 00000000..69c9a61a --- /dev/null +++ b/doc/HincrbyCommand.html @@ -0,0 +1,45 @@ + + + + + + + +
+ + + +
+
+ +HincrbyCommand: Contents
  HINCRBY _key_ _field_ _value_ (Redis >
    Examples
    Return value +
+ +

HincrbyCommand

+ +
+ +
+ +
+ +

HINCRBY _key_ _field_ _value_ (Redis >

1.3.10)= +Time complexity: O(1)
Increment the number stored at field in the hash at key by value. If key does not exist, a new key holding a hash is created. If field does not exist or holds a string, the value is set to 0 before applying the operation.
+
The range of values supported by HINCRBY is limited to 64 bit signed integers.

Examples

+Since the value argument is signed you can use this command to perform both increments and decrements:

+HINCRBY key field 1 (increment by one)
+HINCRBY key field -1 (decrement by one, just like the DECR command)
+HINCRBY key field -10 (decrement by 10)
+
+

Return value

Integer reply The new value at field after the increment operation. +
+ +
+
+ + +