Look at : http://jakarta.apache.org/jcs/RegionProperties.html and http://jakarta.apache.org/jcs/IndexedDiskCacheProperties.html
What are the properties of your disk cache ? On Mon, Aug 2, 2010 at 4:51 AM, Tim Stibbs <stripybad...@gmail.com> wrote: > Hi, > > I am looking into using JCS as a disk-based key-value store, and it seems to > work fine. However if the jvm is terminated, the .key file may not get > written to, and although the .data file has my data in, when I restart the > application it cannot access anything in the cache (presumably due to the > .key file being empty). > > So, is there anyway to force the cache to immediately persist to disk? > Having MaxObjects=0 on the memory cache seems to help, but still doesn't > cause the .key file to be written. > > I also though I might be able to use ICacheEventLogger to see when data has > actually been written to the disk store, but the logging stuff doesn't seem > to be in the released version, although it is in the documentation? > > Does anyone know if it is even possible to do what I am trying to do, or > have any suggestions? > > Thanks. > --------------------------------------------------------------------- To unsubscribe, e-mail: jcs-users-unsubscr...@jakarta.apache.org For additional commands, e-mail: jcs-users-h...@jakarta.apache.org