Book Image

Infinispan data grid platform definitive guide

Book Image

Infinispan data grid platform definitive guide

Overview of this book

Table of Contents (20 chapters)
Infinispan Data Grid Platform Definitive Guide
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Introducing JSR-107 – The Java Caching API


Starting with version 5.3, Infinispan has provided a preview implementation of JCache API (JSR-107) via the javax.cache package.

Note

The final version of the JSR 107: JCACHE—Java Temporary Caching API was released on April 18th, 2014.

JCache specification standardizes in-process caching of Java objects, allowing developers to focus on application development, and removing the burden of implementing caches themselves from the application programmer.

JCache JSR 107 is specification that defines a distributed cache with an interface similar to java.util.ConncurrentHashMap, and cache features such as data validation, locking, eviction, and management. As well as providing the basic put and get methods, the API offers a pluggable CacheLoader interface so that users can add custom loaders for whatever data sources they are using.

In addition, part of the JCache specification defines a set of annotations, which are designed to solve common caching use cases...