Back to Developer Roadmap

Hashes

src/data/roadmaps/redis/content/hashes@wY46Qj5Inw_ClBNI9PB_2.md

4.0773 B
Original Source

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.

Learn more from the following resources: