O'Reilly logo

Spring in Action, 4th Edition: Covers Spring 4 by Craig Walls

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 13. Caching data

This chapter covers

  • Enabling declarative caching
  • Caching with Ehcache, Redis, and GemFire
  • Annotation-oriented caching

Have you ever had someone ask you a question and then, moments after you reply, ask you the same thing again? Often, I’m asked this type of question by my children:

  • “Can I have some candy?”
  • “What time is it?”
  • “Are we there yet?”
  • “Can I have some candy?”

In many ways, the components of the applications we write are the same way. Stateless components tend to scale better, but they also tend to ask the same question over and over again. Because they’re stateless, they discard any answer they were given once their current task is complete, and they have to ask the question again the next time ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required