We are currently using ehcache as 2nd level cache with the following configuration in our application.
<!-- Configure 2nd level cacheing for these entities -->
<cache name="cacheEntity1"
maxElementsInMemory="1500"
eternal="true"
overflowToDisk="false"/>
<cache name="cacheEntity2"
maxElementsInMemory="3500"
eternal="true"
overflowToDisk="false"/>
We are planning to move to infinispan cache. By looking at the documentation of infinispan, we are not able to locate any XML configuration examples for defining cache entities similar to the one above using ehcache.
We are looking to configure the following attributes (maxInMemory, timeToIdleSeconds, timeToLiveSeconds ) at the hibernate entity level.
We prefer to do this configuration using XML rather than a programmatical way.
Any suggestion?
Thanks,
Sadashiv