Hashes store field-value pairs (like an object/record) under one key; sets store unordered collections of unique strings with fast membership tests and set operations. Both are important Redis structures for common data-modeling needs.
Hashes — store objects/records
HSET user:1 name age 30 email
HGET user:1 name
HGETALL user:1
HMGET user:1 name age
HINCRBY user:1 age 1
HDEL user:1 email
HEXISTS user:1 name
