When I use Ehcache(version 2.5.7 and 2.6.3),the amount of elements is not reach parameter of [maxElementsInMemory] , Ehcache also put each of element to disk .That is to say,Ehcache put element in memory, alse put the same of element on disk.
But i found information from document, only when the amount of elements reach [maxElementsInMemory],Ehcache will put element on disk,isn't it? Maybe my ehcache.xml has some error?
My ehcache.xml below: