Redis Hincrbyfloat command
Redis Hincrbyfloat command is used to specify the floating-point add incremental value to the field value in the hash table.
If the specified field does not exist, before executing the command, the value field is initialized to 0.
grammar
redis Hincrbyfloat basic command syntax is as follows:
redis 127.0.0.1:6379> HINCRBYFLOAT KEY_NAME FIELD_NAME INCR_BY_NUMBER
Available versions
> = 2.6.0
return value
After executing Hincrbyfloat command value fields in the hash table.
Examples
redis 127.0.0.1:6379> HSET myhash field 20.50 (integer) 1 redis 127.0.0.1:6379> HINCRBYFLOAT mykey field 0.1 "20.60"