DECRBY - How to Decrement by a Specific Number in Redis

Feature thumb course thumb

The DECRBY command allows for you to subtract a specific number for a Redis key/value pair:

127.0.0.1:6379> SET some_number 100
OK
127.0.0.1:6379> DECRBY some_number 42
(integer) 58