DECRBY
Syntax
Section titled “Syntax”DECRBY key delta
DECRBY command decrements the integer at ‘key’ by the delta specified. Creates ‘key’ with value (-delta) if absent. The command raises an error if the value is a non-integer.
Returns the new value of ‘key’ on success.
Examples
Section titled “Examples”localhost:7379> SET k 43OKlocalhost:7379> DECRBY k 10OK 33localhost:7379> DECRBY k2 50OK -50localhost:7379> GET k2OK "-50"