X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/81d456450ac42b7cf78367ae3a89af1a543c9ff1..8fb13ce816b85ac414921ecca420671bf74a3eea:/doc/IncrCommand.html diff --git a/doc/IncrCommand.html b/doc/IncrCommand.html new file mode 100644 index 00000000..b2b35499 --- /dev/null +++ b/doc/IncrCommand.html @@ -0,0 +1,44 @@ + + + + + + + +
+ + + +
+ + +

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

Return value

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