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:
vault, err := echovault.NewEchoVault()
if err != nil {
log.Fatal(err)
}
newValue, err := vault.HIncrBy("key", "field", 7)
Increment the hash value by the integer increment:
> HINCRBY key field 7