Duva - Distributed Cache Server

INCR

Increase value for the key when it is parsable to integer

Syntax

INCR key

Increments the integer value stored at key by 1. If the key doesn’t exist, it is initialized to 0 before performing the operation. The value must be parsable as an integer or an error will be returned.

Example

INCR value

Return value: Integer reply - the value after incrementation

Notes