X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/efc3408748061a08ec5ff18e392c30f31f5094a2..06e09c9b586d0e2c5d91dc596f871be56c6e0971:/doc/IncrCommand.html diff --git a/doc/IncrCommand.html b/doc/IncrCommand.html deleted file mode 100644 index 5479e5f9..00000000 --- a/doc/IncrCommand.html +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - -
- - - -
- - -

IncrCommand

- -
- -
- -
- #sidebar StringCommandsSidebar

INCR _key_

-

INCRBY _key_ _integer_

-

DECR _key_ _integer_

-

DECRBY _key_ _integer_

-Time complexity: O(1)
Increment or decrement the number stored at key by one. If the key doesnot exist or contains a value of a wrong type, set the key to thevalue of "0" before to perform the increment or decrement operation.
-
INCRBY and DECRBY work just like INCR and DECR but instead toincrement/decrement by 1 the increment/decrement is integer.
-
INCR commands are limited to 64 bit signed integers.
-Note: this is actually a string operation, that is, in Redis there are not "integer" types. Simply the string stored at the key is parsed as a base 10 64 bit signed integer, incremented, and then converted back as a string.

Return value

Integer reply, this commands will reply with the new value of key after the increment or decrement. -
- -
-
- - -