Hash
HINCRBYFLOAT
Increments the value of a hash field by a given float value.
Arguments
keybodystrrequired
The key of the hash.
fieldbodystrrequired
The field to increment
incrementbodyfloatrequired
How much to increment the field by. Can be negative to subtract.
Response
floatrequired
The new value of the field after the increment.
Example
redis.hset("myhash", "field1", 5.5)assert redis.hincrbyfloat("myhash", "field1", 10.1) - 15.6 < 0.0001