Summary

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.

Get Mastering Spring Application Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.