HGETALL
Syntax
HGETALL key
Module
hashCategories
hash read slowDescription
Get all fields and values of a hash.
Examples
- Go (Embedded)
- CLI
Get all fields and values of a hash:
db, err := sugardb.NewSugarDB()
if err != nil {
log.Fatal(err)
}
result, err := db.HGetAll("key")
Get all fields and values of a hash:
> HGETALL key