HKEYS
Syntax
HKEYS key
Module
hashCategories
hash read slowDescription
Returns all the fields in a hash.
Examples
- Go (Embedded)
- CLI
Retrieve all fields from a hash:
db, err := sugardb.NewSugarDB()
if err != nil {
log.Fatal(err)
}
keys, err := db.HKeys("key")
Retrieve all fields from a hash:
> HKEYS key