HMGET
Syntax
HMGET key field [field ...]
Module
hashCategories
fast hash readDescription
Retrieves 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.HMGet("key", "field1", "field2", "field3")
Retrieve values from a hash:
> HMGET key field1 field2