Chapter 5. Getting Started with Spring Data Redis
Before the Spring Data Redis project was born, a normal way to communicate with Redis was to use client libraries that can be compared to the JDBC drivers of relational databases. The difference is that these clients do not implement a standard API that makes it hard to switch from one connector to another. Obviously, the million-dollar question is, how can Spring Data Redis make our life easier?
Spring Data Redis hides the APIs of different client libraries behind a single API that is clean and easy to use. In theory, this ensures that we can change the used Redis connector without making any changes to our application. Even though this is indeed a useful feature if we have to change the used connector, it would be naive to claim that we should start using Spring Data Redis only because of this feature. We have to remember that we will most likely stick with one Redis connector throughout the life cycle of our application.
However, we must...