Iām using Hibernate 4.3.11.Final with the accompanying version of ehcache. I have a simple cache configuration which looks like the following:
<defaultCache maxElementsInMemory="10000"
eternal="false"
timeToIdleSeconds="86400"
timeToLiveSeconds="86400"
overflowToDisk="false"
memoryStoreEvictionPolicy="LRU">
</defaultCache>
<cache name="main" />
My question is, because the memory setting is part of the heap and the heap gets garbage collected periodically, what happens when some of the entries in my cache get garbage collected? Is it the same as those entries getting evicted from the cache?