Redis
Hashes Commands
Store objects as field-value pairs with Redis hashes. Learn HSET, HGET, and hash operations for efficient object storage without serialization overhead.
8 commands
Pro Tips
Use HMSET/HMGET to set/get multiple fields in one call - reduces round trips.
HINCRBY lets you atomically increment numeric hash fields - great for per-user counters.
HSCAN iterates over large hashes without blocking - use instead of HGETALL for big hashes.
Common Mistakes
HGETALL on large hashes blocks Redis. Use HSCAN for hashes with many fields.