On Tue, 2003-03-11 at 16:44, Desai, Mehul P wrote:
> Thanks for the prompt reply. We are not setting maxIdle. We are also using
> an auxiliary disk cache (cache.ccf file is below). Does that mean that when
> our servers are rebooted, the cache is written to disk and brought back into
> memory when the server comes back up - so as you say - we NEVER ever refresh
> the cache once we put something into it?

Yes, the elements will stay until replaced, they will never expire.

> The documentation mentions the following about Persistance,
> " When the disk cache is properly shutdown, the memory index is written to
> disk and the value file is defragmented. When the cache starts up, the disk
> cache can be configured to read or delete the index file. This provides an
> unreliable persistence mechanism."
> 
> Not sure if this is relevant to my question -  but does the above support
> what I think is happening - that the cache is never being refreshed or
> purged? Also on "When the disk cache is properly shutdown" - how do I
> "properly" shutdown the disk cache?

The indexed disk cache writes out a key file when its 'dispose' method
is called. As long as you call CacheAccess.dispose when you are shutting
down, items in the aux should persist between sessions.

(I don't think there is a unit test for that code, so no guarantees,
would be easy to write one and contribute it back if you want to use
that feature).


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to