I am trying to configure Ehcache with a disk persistence that does not initialize the disk cache until the heap is full. Is that possible?
Right now as soon as I initialize my cache I see that the disk cache is created on the file system. Most cases my heap will be big enough to contain my data, so thus I would not want to create a disk store that will not be used. I am using ehcache on a phone where disk space is an issue. And I could potentially need a 1GB disk persistence and so now it creates this large file everytime I initialize my cache.