= 2." />
English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
The Redis Hkeys command is used to get all fields (field) in the hash table.
Basic Syntax of Redis Hkeys Command
redis 127.0.0.1:6379> HKEYS key
=> 2.0.0
Contains a list of all fields (field) in the hash table. Returns an empty list if the key does not exist.
redis 127.0.0.1:6379> HSET myhash field1 "foo" (integer) 1 redis 127.0.0.1:6379> HSET myhash field2 "bar" (integer) 1 redis 127.0.0.1:6379> HKEYS myhash 1) "field1" 2) "field2"