Skip to main content

HKEYS

Syntax

HKEYS key

Module

hash

Categories

hash read slow

Description

Returns all the fields in a hash.

Examples

Retrieve all fields from a hash:

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