Skip to content

Commit

Permalink
incr/decr only take positive values
Browse files Browse the repository at this point in the history
  • Loading branch information
dormando committed Jul 14, 2012
1 parent 1ca691c commit ce0de8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions NewCommands.wiki
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Removes an item from the cache, if it exists.

== incr/decr ==

Increment and Decrement. If an item stored is the string representation of a 64bit integer, you may run incr or decr commands to modify that number. You can incr by positive or negative values, so decr is included for completeness.
Increment and Decrement. If an item stored is the string representation of a 64bit integer, you may run incr or decr commands to modify that number. You may only incr by positive values, or decr by positive values. They does not accept negative values.

If a value does not already exist, incr/decr will fail.

Expand Down Expand Up @@ -96,4 +96,4 @@ A special command that shows you how items would be distributed if slabs were br

Invalidate all existing cache items. Optionally takes a parameter, which means to invalidate all items after N seconds have passed.

This command does not pause the server, as it returns immediately. It does not free up or flush memory at all, it just causes all items to expire.
This command does not pause the server, as it returns immediately. It does not free up or flush memory at all, it just causes all items to expire.

0 comments on commit ce0de8e

Please sign in to comment.