I'm new to ehcache. I tried to create a cache limit the number of elements in the cache, all worked file and the cache used a file when the number has been reached.
My problem is when the elements are large - I get out of memory exception. Is there a way to tell the cache that after the cache size is more than 100 MB data should be written to disk?