cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Giacomo Pati <pati_giac...@yahoo.com>
Subject Re: [RT] Caching - SoftReference Annoyances at 3am
Date Fri, 08 Dec 2000 15:14:10 GMT

--- Robin Green <greenrd@hotmail.com> wrote:
> "Robin Green" <greenrd@hotmail.com> wrote:
> 
> [snip]
> 
> >But the point is, I can't see any way of reliably
> >finding out when a reference has been cleared in order to remove it
> from 
> >the
> >cache.
> 
> Doh! Got it!
> 
> Just set up a WeakReference and a SoftReference for each object. When
> the 
> SoftReference is cleared, the WeakReference will be added to its
> reference 
> queue. Simple really.
> 
> I'll get right on it - I should have something usable to present Real
> Soon 
> Now. :-)

Cool. I waiting for it :)

Giacomo

=====


__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/

Mime
View raw message