Hash
HINCRBY
Increments the value of a hash field by a given amount
If the hash field does not exist, it is set to 0 before performing the operation.
Arguments
key
str
requiredThe key of the hash.
field
str
requiredThe field to increment
increment
int
How much to increment the field by. Can be negative to subtract.
Response
The new value of the field after the increment.
Was this page helpful?