How to Decrement in Redis

Feature thumb course thumb

This command will subtract one integer value from a key's value.

127.0.0.1:6379> SET some_number 100
OK
127.0.0.1:6379> DECR some_number
(integer) 99