In Redis, the DECR
command decrements the value of a specified key by one.
If the key doesn’t exist, DECR
creates the key with a value of 0
and then decrements it by one.
An error occurs if the key contains a value of the wrong type or contains a string that cannot be represented as integer.
Continue reading