You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jcs-users@jakarta.apache.org by Brett Bandy <br...@nuasis.com> on 2002/12/31 03:54:18 UTC

Auxiliary DiskCache questions

I'm trying to use the IndexedDiskCache as a way to persist cached elements
that need to live across a system shutdown.  To ensure that elements are
persisted I need to be able to spool them to the auxiliary disk cache.  I've
figured out how to do this in all but a few cases.  If the system shuts down
properly I am able to dispose of the memory cache and it is persisted to the
disk cache just fine.  However, in the case of an abnormal shutdown all
elements in the memory cache are lost.  So... I'd like to be able to
periodically flush the memory cache to disk.  However, it appears that the
keys are NOT being spooled to disk unless I dispose of the cache.

1) Is there a way to periodically save the key file to disk?
2) Is there a way to allow the data file to be read at startup in the
absence of the key file?

thanks,
Brett