YouTip LogoYouTip

Hashes Hincrbyfloat

# Redis Hincrbyfloat Command [!(#) Redis Hashes](#) The Redis Hincrbyfloat command increments the floating-point value stored at field in the hash stored at key by the specified increment. If the specified field does not exist, it is initialized to 0 before performing the operation. ### Syntax The basic syntax of the redis Hincrbyfloat command is as follows: HINCRBYFLOAT key field increment ### Available since >= 2.6.0 ### Return value The value of the field in the hash after executing the Hincrbyfloat command. ### Example 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> [!(#) Redis Hashes](#)
← Hashes HkeysHashes Hincrby β†’