Advantages of using a local mode cache
Introduction   Even though Infinispan's biggest potential is as distributed, in-memory data grid platform, one aspect of it often gets overlooked - it can be used as a standalone cache node. But why would anyone use Infinispan over, say, a ConcurrentHashMap? Here are some reasons: Eviction. Built-in eviction ensures you don't run out of memory. Write-through and write-behind caching. Going beyond memory and onto disk (or any other pluggable CacheStore) means that your state survives restarts, and preloaded hot caches can be configured. JTA support and XA compliance. Participate in ongoing transactions with any JTA-compliant transaction manager. MVCC-based concurrency. Highly optimized for fast, non-blocking readers. Manageability. Simple JMX or rich GUI management console via JOPR, you have a choice. Not just for the JVM. RESTful API, and upcoming client/server modules speaking Memcached and HotRodprotocols help non-JVM platforms use Infinispan. Cluster-ready. Should the need arise.