hincrbyfloat
HINCRBYFLOAT
Redis 開発者教育Redis Developer Course |
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 incrment
- このコマンドは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
返事がかかってなれば、メールでお知らせします。
