O'Reilly logo

Instant Effective Caching with Ehcache by Daniel Wind

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

Spring Cache Abstraction (Intermediate)

In this recipe, we will cover the following topics:

  • Including Ehcache in a Spring-based project
  • Declarative configuration through XML
  • Spring cache abstraction API details

We will examine how to configure Ehcache in Spring-based projects using the Cache Abstraction utility. This allows us to seamlessly integrate both technologies and give our projects enough flexibility to set up the cache in a nonintrusive way.

Getting ready

Ehcache can be easily integrated with the latest Spring Framework. Configuring it is a simple application context configuration and some custom annotated code for handling the cache requirements.

Note

Refer to the recipe3 project directory within the source code bundle for a fully working sample ...

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