In Redis, the INCR
command increments the value of a specified key by one.
If the key doesn’t exist, INCR
creates the key with a value of 0
and then increments 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