hincrbyfloat
HINCRBYFLOAT
Apply for Redis Developer Course
|
Redis Regular Inspection / Technical Support
|
Redis Enterprise Server
|
|---|
Increment or decrement a value by a float
The usage is hincrbyfloat key field float.
If the field does not exist, the increment value is set.
Example
| Command> | hincrbyfloat user-1 weight 75.6 |
| Result> | 75.6 |
| Command> | hincrbyfloat user-1 weight 12.6 |
| Result> | 88.2 |
| Command> | hincrbyfloat user-1 weight -10.2 |
| Result> | 78 |
Syntax
HINCRBYFLOAT key field increment
- Available since version 2.6.0.
- Time complexity is O(1).
| Related commands | HSET, HMGET, MSET, LPUSH, SADD, ZSET |
| Clients for Java | Jedis, Lettuce, Redisson | Clients for C | Hiredis |
| << HINCRBY | HINCRBYFLOAT | HEXISTS >> |
|---|
Email
답글이 올라오면 이메일로 알려드리겠습니다.
