In this chapter, we saw how we can implement our own caching algorithm and how to make a generic algorithm. We looked at Spring support for caching, and different kinds of caching repositories in the Spring caching framework. We have demonstrated how caching can be used with annotations in the Spring MVC application. We have also discussed the scenario of removing cache and when is it ideal to opt for caching. Lastly, we also discussed the classes and interface that supports the caching mechanism in Spring framework.
In the next chapters, we shall look at Spring with the thymeleaf framework integration and Spring Webservices.