У меня есть эта конфигурация для ehCache:
<ehcache>
<defaultCache
name="defaut"
maxElementsInMemory="5"
eternal="false"
timeToIdleSeconds="20"
timeToLiveSeconds="20"
overflowToDisk="false"
diskPersistent="false"
memoryStoreEvictionPolicy="LRU"
/>
</ehcache>
Как получить доступ к кешу по умолчанию для EhCache?
CacheManager.getInstance().getCache("default"); // returns null