import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; # 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: ```go db, err := sugardb.NewSugarDB() if err != nil { log.Fatal(err) } keys, err := db.HKeys("key") ``` Retrieve all fields from a hash: ``` > HKEYS key ```