I want to do something with ehcache in Java that I think should be extremely simple, but I\'ve spent enough time frustrating myself with the docs...
Write a
I suppose this will work, but I still wonder why programatically defined caches can't persist on disk (especially since they are still written to disk!)
My understanding is that a programmatically created cache (i.e. not declared in ehcache.xml) can use a DiskStore that can itself be persistent but this doesn't mean that this cache will be loaded automatically by the CacheManager uppon restart. Actually, I don't think the previously mentioned files do contain the cache parameters.
But, if you "recreate" the cache programmatically with the same parameters, you'll find the previously cached entries back from the DiskStore.