ehcachedistributed-cachingdistributed-cacheehcache-bigmemory

Maximum size of the value can be handled by EhCache


What is the maximum size of a value that can be held in EhCache in all the storage tiers(Memory Store, Off-heap Store, Disk Store) ?

My ultimate question is , does EhCache is suitable to cache large file streams?


Solution

  • Ehcache does not have internal limits for storing very large values. The limit lives more on the heap memory your application can have. And that is because since Ehcache ALWAYS has an on heap tier and that values will be put in it when retrieved from the cache.

    Ehcache is not designed to stream values from and to offheap or disk tiers, thus skipping the need to have enough heap to hold them.