Redis Data Types Cheat Sheet/Get multiple fields

Read several fields in one call.

Section: Hashes

Get multiple fields

bash
bash
HMGET user:1 name email

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Hashes
Get one hash field
Read one field from a hash.
OpenIn sheetbashsame section
Get all fields and values
Read the full hash.
OpenIn sheetbashsame section
List field names
Return all field names in a hash.
OpenIn sheetbashsame section
List field values
Return all values in a hash.
OpenIn sheetbashsame section
Set one or more hash fields
Create or update hash fields.
OpenIn sheetbashsame section
Count fields
Return how many fields exist.
OpenIn sheetbashsame section