Data type is the core concept when it comes to application design and development with Redis. Unlike RDBMS, there is no table or schema you need to worry about in Redis. When it comes to how to organize your data in Redis, the one thing you should consider first is what data types natively supported by Redis fit your scenario best. Moreover, you have no way to manipulate your data in Redis with SQL, as in a relational database. Instead, you issue commands directly on the target data with the API, accompanied by the data. Therefore, another thing you need to think about is whether the operations of a certain data type in Redis can satisfy your business requirements.
In this chapter, we will look at all data types and important operations related to Redis. In order to better illustrate the data types and their operations, a Yelp-like demo application (we'll call...