Looking for API which shows stastical data of Infnispan Cache or API for see data or metadata of cache object
I have fouund in EH Cache that
net.sf.ehcache.Cache c = CacheManager.getInstance().getCache("xyz");
and basic apis to read read cache data and stastics.
Statistics are exposed via JMX (if enabled in the cache cfg). JMX attributes and operations exposed are documented here: http://docs.jboss.org/infinispan/4.1/apidocs/jmxComponents.html
Further, if you install the JOPR management console, you can use the Infinispan JOPR plugin to get a GUI view of these stats. See Management Tooling