Redis · Concept
Hash
Redis hashes store field-value pairs under one key. They suit simple, flat objects and support field reads, updates, deletion, numeric changes, queries, and individual field expiration.
Last updated
Syntax
HSET key field value [field value ...]
HGET key field
HMGET key field [field ...]
HINCRBY key field increment
HGETALL keyIn-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
HSETHGETHGETALLHMGETHINCRBYHEXPIREHPEXPIREHEXPIREAT