Infinispan APIs
Infinispan provides the following APIs to access the grid:
- Cache API: This is Infinispan's primary API to access the grid, it's located in the
org.infinispan
package. - TreeCache API: Infinispan provides the
org.infinispan.tree.TreeCache
interface to provide compatibility with JBoss Cache. It can be used for caching data organized as tree-like structures, like a filesystem tree.To create an instance of
TreeCache
, you will need a factory class calledorg.infinispan.tree.TreeCacheFactory
. Define the tree structure using theorg.infinispan.tree.Node
interface, by defining a root node and a collection of node objects that contain the key and value data.You can find a simple example of the
TreeCache
API using the Infinispan configuration ...
Get Infinispan Data Grid Platform Definitive Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.