Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
litespeed_wiki:lsmcd:commands [2016/04/06 21:38]
Rob Holda
litespeed_wiki:lsmcd:commands [2016/04/07 14:08]
Rob Holda [incr]
Line 29: Line 29:
 ===== 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:​** ​ 
-<​code>​ 
-incr <key> <​value>​ [noreply] 
-</​code>​ 
-**example:​** 
-<​code>​ 
-incr mykey 4 
- 
-5 
-</​code>​ 
-**output notes:** 
-  * **4** → value to increment by 
-    * In this example, if "​mykey"​ had a value of "​1",​ after running **incr**, its value would be "​5"​. ​ 
- 
 ===== decr ===== ===== decr =====
 Decrement numerical key’s value by the given number if the key/value pair exists. Decrement numerical key’s value by the given number if the key/value pair exists.
  • Admin
  • Last modified: 2016/04/07 19:36
  • by Rob Holda