Skip to main content

HMGET

Syntax

HMGET key field [field ...]

Module

hash

Categories

fast hash read

Description

Retrieves the value of each of the listed fields from the hash.

Examples

Retrieve values from a hash:

db, err := sugardb.NewSugarDB()
if err != nil {
log.Fatal(err)
}
values, err := db.HMGet("key", "field1", "field2", "field3")