INCRBY
Syntax
Section titled “Syntax”INCRBY key delta
INCRBY command increments 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> INCRBY k 10OK 53localhost:7379> INCRBY k2 50OK 50localhost:7379> GET k2OK "50"