HINCRBYFLOAT
Syntax
HINCRBYFLOAT key field increment
Module
hashCategories
fast hash writeDescription
Increment the hash value by the float increment.
Examples
- Go (Embedded)
- CLI
Increment the hash value by the float increment:
db, err := sugardb.NewSugarDB()
if err != nil {
log.Fatal(err)
}
newValue, err := db.HIncrByFloat("key", "field", 7.75)
Increment the hash value by the float increment:
> HINCRBYFLOAT key field 7.75