In Chapter 2, Transactions and Locks, we learned about the transactions and locks in Redis. However, in order to leverage the full potential of Redis, one needs to understand the basic data types built into it. The data types are very powerful and provide full atomic operations for data manipulation.
These data types are flexible and can be used or exploited in a lot of ways. In order to design solutions using Redis, we need to understand what each data type means, how to use them, when to use a data type, and more importantly, when not to use a data type.
In this chapter, we will focus on the following topics: