keys

UK['ki:z] US['ki:z]

n.Key; key; (music) key (plural noun of key); solution

redis HKEYS command syntax

Function:Return all fields in the hash table key.

Syntax:HKEYS key

Available versions:>= 2.0.0

Time complexity:O(N), N is the size of the hash table.

Returns:A table containing all fields in the hash table. When key does not exist, an empty list is returned.

redis HKEYS command example

# 哈希表非空 redis> HMSET website google www.google.com yahoo www.yahoo.com OK redis> HKEYS website 1) "google" 2) "yahoo" # 空哈希表/key不存在 redis> EXISTS fake_key (integer) 0 redis> HKEYS fake_key (empty list or set)