redis.hset("myhash", "field1", 5.5) assert redis.hincrbyfloat("myhash", "field1", 10.1) - 15.6 < 0.0001
Increments the value of a hash field by a given float value.
The key of the hash.
The field to increment
How much to increment the field by. Can be negative to subtract.
The new value of the field after the increment.
Was this page helpful?