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

Ehcache transactional support (Advanced)

In this recipe, we will cover the following topics:

  • Ehcache atomic caching operations and its benefits
  • Configuring Ehcache for supporting transactions

We will examine how atomic transactional operations are configured in Ehcache. We first get a firm grasp on transactional modes and code requirements within the transaction context. Then, we will go over the details on implementing a local transactional cache in cluster mode using Terracotta Server Array (for details refer to the Ehcache and Terracotta Server Array (Advanced) recipe).

Getting ready

Transactions guarantee that all operations are to be completed successfully or fully discarded if an error occurs. In our context an error means some sort of exception ...

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