redis-cli HGETALL user:1

Category: Databases & SQL

redis-cli HGETALL user:1

Read every field of a hash

Prints alternating field and value pairs for the hash. For a single field use HGET user:1 name. Related: HSET.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.