Skip to main content

HKEYS

Note

Official reference: HKEYS.

List hash field names.

Syntax

HKEYS key

Field order is not guaranteed. Use HGETALL for field-value pairs rather than pairing separate HKEYS and HVALS results by position.

Results

ReturnRowsContent
ResultSetmultipleFIELD field, STRING type

Example

HSET demo:user name mali age 18
HKEYS demo:user