Skip to main content

HINCRBY

Syntax

HINCRBY key field increment

Module

hash

Categories

fast hash write

Description

Increment the hash value by the integer increment.

Examples

Increment the hash value by the integer increment:

db, err := sugardb.NewSugarDB()
if err != nil {
log.Fatal(err)
}
newValue, err := db.HIncrBy("key", "field", 7)