Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Last revision Both sides next revision
litespeed_wiki:lsmcd:commands:incr [2016/04/07 14:07]
Rob Holda created
litespeed_wiki:lsmcd:commands:incr [2016/04/07 16:11]
Rob Holda
Line 1: Line 1:
 ===== incr ===== ===== incr =====
-Increment numerical key’s value by the given number if the key/value pair exists.+Increment ​numerical key’s value by the given number if the key/value pair exists.
  
 **syntax:​** ​ **syntax:​** ​
Line 21: Line 21:
   * **4** → Add 4 to the value of "​mykey"​   * **4** → Add 4 to the value of "​mykey"​
   * In this example, if "​mykey"​ had a value of "​1",​ after running **incr**, its value would be "​5"​.   * In this example, if "​mykey"​ had a value of "​1",​ after running **incr**, its value would be "​5"​.
- 
-**possible errors:** 
-  * **NOT_FOUND** - indicates that the key does not exist. 
-  * **CLIENT_ERROR** - indicates that the value associated with "​mykey"​ is not numerical. 
-  * **ERROR** - indicates any other error, such as a syntax error. 
- 
  • Admin
  • Last modified: 2016/04/07 18:37
  • by Rob Holda