cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robin Green" <>
Subject Re: [RT] Caching - SoftReference Annoyances at 3am
Date Thu, 07 Dec 2000 14:33:02 GMT
"Robin Green" <> wrote:


>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 

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. :-)

Get more from the Web.  FREE MSN Explorer download :

View raw message