English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
The Redis Hincrbyfloat command is used to add a specified floating-point increment value to the field value in the hash table.
If the specified field does not exist, the value of the field is initialized to 0 before executing the command.
Basic Syntax of Redis Hincrbyfloat Command
HINCRBYFLOAT key field increment
>= 2.6.0
The value of the field in the hash table after executing the Hincrbyfloat command.
redis> HSET mykey field 10.50 (integer) 1 redis> HINCRBYFLOAT mykey field 0.1 "10.6" redis> HINCRBYFLOAT mykey field -5 "5.6" redis> HSET mykey field 5.0e3 (integer) 0 redis> HINCRBYFLOAT mykey field 2.0e2 "5200" redis>