Skip to main content

HGETALL

Syntax

HGETALL key

Module

hash

Categories

hash read slow

Description

Get all fields and values of a hash.

Examples

Get all fields and values of a hash:

db, err := sugardb.NewSugarDB()
if err != nil {
log.Fatal(err)
}
result, err := db.HGetAll("key")