Redis allow you to use the String data type to store floating point numbers.
A user can set the float value of a key using the command:
SET floatkey 2.0
The set command will create the key if necessary or update it if it already exists.
The value of the key can be updated on the server using either the INCRBYFLOAT command. INCRBYFLOAT will increase the value of a key by the provided increment value.
INCRBYFLOAT floatkey 2.1
If the value of the key specified to INCRBYFLOAT can't be expressed as a floating point, Redis will return an error. If the key doesn't exist, the key will be created and the operation will be applied to the default value of 0.0.
Keys can be decremented by passing a negative increment to the INCRBYFLOAT command.