Free Sample
+ Collection

Instant Effective Caching with Ehcache

Daniel Wind

Extend the capabilities of your caching layer by integrating Ehcache into your Java Enterprise projects
RRP $14.99

Want this title & more?

$12.99 p/month

Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Book Details

ISBN 139781782160380
Paperback86 pages

About This Book

  • Learn something new in an Instant! A short, fast, focused guide delivering immediate results
  • Setup Ehcache and understand its configuration
  • Use Ehcache with popular Java frameworks
  • Monitor an Ehcache-based application using open source software

Who This Book Is For

This book is aimed at Java developers who are looking for an Ehcache integration reference guide and want to get a good background in its fundamental core functionality. It is assumed that you have some experience with Java. Prior knowledge in Ehcache is not a requirement.

Table of Contents

Chapter 1: Instant Effective Caching with Ehcache
Configuration patterns (Simple)
Handling events and exceptions (Intermediate)
Spring Cache Abstraction (Intermediate)
Caching web fragments (Intermediate)
Hibernate second-level caching (Intermediate)
The Ehcache Search API (Advanced)
The custom eviction algorithm (Advanced)
Out-of-process distributed caching (Intermediate)
Ehcache monitoring and logging (Intermediate)
Ehcache transactional support (Advanced)
Ehcache and Terracotta Server Array (Advanced)
Datasource read overloading (Intermediate)

What You Will Learn

  • Implement and configure the Ehcache library
  • Manage events and exceptions using the Ehcache Events API
  • Integrating Ehcache with Spring and Hibernate
  • Distribute Ehcache using Web Services
  • Cache local transactions with Ehcache

In Detail

Ehcache is a standards-based cache that helps you to boost performance while providing many facilities, such as in-memory data management. However, developers can run into issues when implementing Ehcache. Ehcache Effective How-to examines the common scenarios with an objective to help you learn Ehcache, with recipes that focus on smoothly integrating Ehcache into your projects.

"Effective Caching with Ehcache" is a hands-on tutorial on Ehcache, and details the methods to integrate Ehcahe into your Java applications. The book aims to shed light on the mysteries surrounding Ehcache whose answers were confined to a few highly experienced professionals of the developer’s world. The book is filled with examples, and each recipe is assisted by source code, which explains how Ehcache works in a real Java application.

"Effective Caching with Ehcache" begins with a simple recipe that focuses on the scenarios where Ehcache could be used. You are then redirected towards understanding and learning the basic concepts of caching and Ehcache configuration. During the course of the book, you will learn how to improve the performance of an application and its cache. The recipes emphasize extending the capabilities of your caching layer with hands-on discussion on building smart DAOs, and enabling and exploiting the Ehcache statistics. By the end of the book, you will be able to confidently choose the right configuration for your application while implementing Ehcache in a clustered environment.


Read More