Thanks again. Last two questions and that should really clear up current doubts.
1) We are not setting the IsSpool element attribute - is that by default true or false? If it is false, that means we are never writing to the disk and the cache is being refreshed every time we reboot? 2) Also we are not calling CacheAccess.dispose when we shut down - does that also imply that we are not persisting the cache between server reboots? Sorry about the flurry of questions - I just want to make sure whether we need to make any changes to ensure that the cache is refreshed every time the server reboots. I will definitely let you know if we decide to implement remote clearing of the cache or the test case for persistence. Thanks, Mehul. -----Original Message----- From: James Taylor [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 11, 2003 1:54 PM To: 'Turbine JCS Users List' Subject: RE: MaxLifeSeconds 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]
