Storing Hashes in Redis
Let’s look at the commands used to store hashes in Redis.
We'll cover the following
We know that the data in Redis is stored as key-value pairs. The value can also be a field-value pair. This is called the Hash data structure. Suppose we need to store the employee ID and name of all the employees within a department. In this case, we can use Hashes in Redis. The key will be the department name, and the value will be the empId-empName pair.
Create a free account to view this lesson.
By signing up, you agree to Educative's Terms of Service and Privacy Policy