HGET
Syntax
HGET key field [field ...]
Module
hashCategories
fast hash readDescription
Retrieve the value of each of the listed fields from the hash.
Examples
- Go (Embedded)
- CLI
Retrieve values from a hash:
db, err := sugardb.NewSugarDB()
if err != nil {
log.Fatal(err)
}
values, err := db.HGet("key", "field1", "field2", "field3")
Retrieve values from a hash:
> HGET key field1 field2