X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/924aa408b99837036b679bd3895f836af6bc763f..edc2f63ad9c961e54a10f27a44a4b64868160eaa:/doc/IncrCommand.html diff --git a/doc/IncrCommand.html b/doc/IncrCommand.html index 676d06cb..b2b35499 100644 --- a/doc/IncrCommand.html +++ b/doc/IncrCommand.html @@ -16,7 +16,7 @@
-IncrCommand: Contents
  INCR _key_
  INCRBY _key_ _integer_
  DECR _key_ _integer_
  DECRBY _key_ _integer_
    Return value
    See also +IncrCommand: Contents
  INCR _key_
  INCRBY _key_ _integer_
  DECR _key_ _integer_
  DECRBY _key_ _integer_
    Return value

IncrCommand

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

INCR _key_

+ #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.
-

Return value

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

See also

- +
INCR commands are limited to 64 bit signed integers.
+

Return value

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