Databases Reference
In-Depth Information
Verifying that the Spring cache abstraction is
working
We have now successfully added caching to our example application. We can verify
that the Spring cache abstraction is working properly by using the cached methods
and looking for the following lines from the log file of our application:
DEBUG - RedisConnectionUtils - Opening Redis Connection
DEBUG - RedisConnectionUtils - Closing Redis Connection
If these lines are found from the log file it can mean that:
• The contact information is fetched from the cache instead of the used database
• The contact information is updated to the cache
• The contact information is removed from the cache
Summary
In this chapter, we have learned that:
• Designing a Redis data model is totally different from designing a data
model of a relational database
• We can use Redis as data storage of a web application
• Spring Data Redis provides a clean integration with the Redis publish/
subscribe implementation
• We can use Redis as a centralized cache of our application by using the
Spring cache abstraction
 
Search WWH ::




Custom Search