Skip to main content

HGET

Syntax

HGET key field [field ...]

Module

hash

Categories

fast hash read

Description

Retrieve 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.HGet("key", "field1", "field2", "field3")