You are previewing Instant Effective Caching with Ehcache.
O'Reilly logo
Instant Effective Caching with Ehcache

Book Description

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

  • 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

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.

Table of Contents

  1. Instant Effective Caching with Ehcache
    1. Instant Effective Caching with Ehcache
    2. Credits
    3. About the Author
    4. Acknowledgments
    5. About the Reviewers
    6. www.PacktPub.com
      1. Support files, eBooks, discount offers and more
        1. Why Subscribe?
        2. Free Access for Packt account holders
    7. Preface
      1. What this book covers
      2. What you need for this book
      3. Who this book is for
      4. Conventions
      5. Reader feedback
      6. Customer support
        1. Downloading the example code
        2. Errata
        3. Piracy
        4. Questions
    8. 1. Instant Effective Caching with Ehcache
      1. Configuration patterns (Simple)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      2. Handling events and exceptions (Intermediate)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      3. Spring Cache Abstraction (Intermediate)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      4. Caching web fragments (Intermediate)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      5. Hibernate second-level caching (Intermediate)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      6. The Ehcache Search API (Advanced)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      7. The custom eviction algorithm (Advanced)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      8. Out-of-process distributed caching (Intermediate)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      9. Ehcache monitoring and logging (Intermediate)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      10. Ehcache transactional support (Advanced)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      11. Ehcache and Terracotta Server Array (Advanced)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      12. Datasource read overloading (Intermediate)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
    9. A. Core Concepts
      1. Cache usage patterns
        1. cache-aside
        2. cache-as-sor
        3. read-through
        4. write-through
        5. write-behind
        6. There's more...
          1. In-process caching
          2. Out-process caching