I have written a simple "cache clear" action that takes a cache key (from
the status page) and manually removes it from the cache.  To delete all of
them you could (as an alternative to convincing the avalon folks to alter
the basic functionality) just clear them in this way by iterating over the
store contents.  

Geoff Howard

> -----Original Message-----
> From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 12, 2002 9:25 AM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: RE: [PROPOSAL] Simple proposal to add "flushing" to Store
> components
> 
> 
> > From: Michael Melhem [mailto:[EMAIL PROTECTED]]
> > 
> > Dear Cocooners,
> > 
> > I would to like add a manual flushing ability
> > to Store/Cache objects. That is, a method to emtpy
> > a store component of all the data its currently holding.
> > 
> > This would be useful during appliction testing, if one needed to
> ensure
> > the cache is empty before a particualr request etc .
> > 
> > Moreover an adminstration application might want to manually flush
> > the cache of some cocoon application running in production land etc
> etc
> > 
> > Does any anyone see any issues with this little 
> enhancememt, comments
> ?
> 
> Flushing or clearing? In MRU memory store, flush might mean "flush to
> persistent store". I would suggest to use name clear(), and it is
> consistent with collections API.
> 
> There is one issue with your proposal though: first, you have to
> convince Avalon guys: Store components were moved to the Excalibur.
> 
> 
> Vadim
> 
> > Regards,
> > Michael Melhem
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 

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

Reply via email to