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

Infinispan and JSR 107 – Java Temporary Caching API


The Java specification request 107 (JSR 107: JCACHE - Java Temporary Caching API) has been created to define a temporary caching API for the Java platform and presents a Map-like API. As in a regular java.util.Map, data is stored as values by keys.

Note

Java Specification Request (JSR) is a formal document that describes a proposal for a new feature or change in the Java Platform.

This process is defined by the Java Community Process (JCP), which is responsible for approving and developing the standard technical specifications for the Java technology.

Any organization or individual can sign up to become a JCP member and then participate on the expert group of a JSR or even submit their own JSR proposals.

With JCACHE, you can store and retrieve your objects, control how values expire from the cache, inspect the contents of the cache, and get statistics about the cache. JCACHE also provides support for optional runtime cache annotations, support for transactions, and listeners to add custom behavior when setting and deleting values.

The primary programming artifact is the javax.cache.Cache interface, with some modifications for distributed environments.

Infinispan exposes a JSR-107 compatible cache interface in which you can store data, and enhances it by providing additional APIs and features.