hincrbyfloat
HINCRBYFLOAT
Redis 開発者教育の申込
|
Redis 定期点検/技術サポートRedis Technical Support |
Redis エンタープライズサーバーRedis Enterprise Server |
|---|
値(value)を float だけ増減
使い方は hincrbyfloat key field float です。
該当フィールド(field)がなければ increment 値を set します。
Example
| コマンド> | hincrbyfloat user-1 weight 75.6 |
| 結果> | 75.6 |
| コマンド> | hincrbyfloat user-1 weight 12.6 |
| 結果> | 88.2 |
| コマンド> | hincrbyfloat user-1 weight -10.2 |
| 結果> | 78 |
構文
HINCRBYFLOAT key field increment
- このコマンドは version 2.6.0 から使用できます。
- 時間計算量は O(1) です。
| 関連コマンド | HSET, HMGET, MSET, LPUSH, SADD, ZSET |
| Clients for Java | Jedis, Lettuce, Redisson | Clients for C | Hiredis |
| << HINCRBY | HINCRBYFLOAT | HEXISTS >> |
|---|
Email
返事がかかってなれば、メールでお知らせします。
