Skip to content
masterclass Buddy

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 key

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • HSET
  • HGET
  • HGETALL
  • HMGET
  • HINCRBY
  • HEXPIRE
  • HPEXPIRE
  • HEXPIREAT

Source: Redis hashes. Checked 2026-11-03.