DECR
Since 1.1.0Strings
Syntax
DECR keySubtracts 1 from the integer stored at key. A missing key counts as 0.
Reply
- The value after the decrement.
ERR increment or decrement would overflowbelow-9223372036854775808.ERR value is not an integer or out of rangeif the value is not an integer.
Examples
> SET n 10
OK
> DECR n
(integer) 9