
Redis Hashes are maps between the string fields and the string values. Hence, they are the perfect data type to represent objects. In Redis, every hash can store up to more than 4 billion field-value pairs. Read More
In computing, a hash table (hash map) is a data structure that implements an associative array abstract data type, a structure that can map keys to values. A hash table uses a hash function to compute an index, also called a hash code, into an array of buckets or slots, from which the desired value can be found. Read More
Hashed Commands
- HMSET This command is used to store a hash in Redis.
HMSET key field value field value ...
- HGETALL This command is used to get all the field value pairs for a given key.
HGETALL key
- HGET This command is used to get specific field.
HGET key field
- HEXISTS This command used to check if the field is exits, if it exists will return 1, else it will return 0
HEXISTS key field
- HDEL This command is used to delete a specific field at hash
HDEL key field
- HSETNX This command is used to update the hash, we can use it to add key-value-pair to exists hash
HSETNX key field value
Related articles
The Odyssey of Integrating Real-Time Features into Your Node.js App with WebSockets and Redis
Discover how to supercharge your Node.js applications with real-time capabilities using WebSockets and Redis, transforming user experience and performance.
Sailing Through the Storm: Handling High-Traffic Events with Node.js and Redis
Discover how to prepare and scale your Node.js applications for high-traffic events using Redis, ensuring seamless user experiences even under heavy load.
Sorted Set In Redis
Redis Sorted Sets are, similarly to Redis Sets, non repeating collections of Strings. The difference is that every member of a Sorted Set is associated with a score