cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robin Green" <gree...@hotmail.com>
Subject Re: [RT] Caching - SoftReference Annoyances at 3am
Date Thu, 07 Dec 2000 14:33:02 GMT
"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. :-)



_____________________________________________________________________________________
Get more from the Web.  FREE MSN Explorer download : http://explorer.msn.com


Mime
View raw message