O'Reilly logo

Infinispan Data Grid Platform Definitive Guide by Wagner Roberto dos Santos

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 called org.infinispan.tree.TreeCacheFactory. Define the tree structure using the org.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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required