HINCRBY
Syntax
HINCRBY key field increment
Module
hashCategories
fast hash writeDescription
Increment the hash value by the integer increment.
Examples
- Go (Embedded)
- CLI
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)
Increment the hash value by the integer increment:
> HINCRBY key field 7