Hashes
Last updated
What is Hashes?
Hashes in Redis are a data type that allows you to store a collection of key-value pairs under a single key, similar to a dictionary or a map. Each hash can hold multiple fields, and each field has its own value, making hashes ideal for representing objects or entities with various attributes. You can perform operations like adding fields (HSET), retrieving field values (HGET), deleting fields (HDEL), and iterating over fields (HSCAN). Hashes are memory-efficient and provide a way to group related data together, making them suitable for use cases like user profiles, configuration settings, or any structured data storage.
Free resources to learn Hashes
- Official docsRedis Hashes
Hashes: common questions
Can I learn Hashes in Hindi?
This lesson is written in English. Once you sign in, open it in the interactive course and ask the AI tutor to explain Hashes in Hindi or Hinglish. The tutor answers from this lesson’s own text, so it stays on the syllabus, and it runs on your own Google, OpenAI or Anthropic key.
Is this Hashes tutorial for beginners?
It is lesson 41 of 162 in the free Redis roadmap, in stage 3, Hashes. If you are new to Redis, start from stage 1 and come back here in order; if you already know the earlier stages, this lesson stands on its own.