Skip to main content

HINCRBYFLOAT

Syntax

HINCRBYFLOAT key field increment

Module

hash

Categories

fast hash write

Description

Increment the hash value by the float increment.

Examples

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)