We have learned how we can set up our project and configure the used Redis connection. Now it is time to expand our knowledge and learn how we can use Spring Data Redis in our applications. We will also prove that it is possible to use Redis as data storage of a web application.
Salvatore Sanfilippo is a contributor of the Redis project and he has written a wonderful blog entry that describes how we can use Redis in our applications. This blog entry is available at http://antirez.com/post/take-advantage-of-redis-adding-it-to-your-stack.html.
In this chapter, we will cover:
The basic design principles of a Redis data model
The key components of Spring Data Redis
How we can implement a CRUD application
How we can use the publish/subscribe messaging pattern
How we can use Spring Data Redis as an implementation of the cache abstraction provided by Spring Framework 3.1