Syntax
INCRBYFLOAT key increment
Increment value stored at key
by increment. The precision of the output is fixed at 17 digits after
the decimal point.
Returns
Returns the value of key after
increment.
127.0.0.1:6379> set var 10.05 OK 127.0.0.1:6379> incrbyfloat var 0.05 "10.1" 127.0.0.1:6379> incrbyfloat var 0.05 "10.15" 127.0.0.1:6379> incrbyfloat var 0.05 "10.2"
You can also represent values
in exponential notation.
127.0.0.1:6379> set var 10.05 OK 127.0.0.1:6379> incrbyfloat var 0.05 "10.1" 127.0.0.1:6379> incrbyfloat var 0.05 "10.15" 127.0.0.1:6379> incrbyfloat var 0.05 "10.2"
No comments:
Post a Comment