cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Washeim <esa...@canuck.com>
Subject Re: [RT] Caching - SoftReference Annoyances at 3am
Date Wed, 13 Dec 2000 16:53:38 GMT
on 12/7/00 3:33 PM, Robin Green at 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. :-)
> 

You're way, way too fast :)

-- 
Mark (Poetaster) Washeim

'On the linen wrappings of certain mummified remains
found near the Etrurian coast are invaluable writings
that await translation.

Quem colorem habet sapientia?'

Evan S. Connell

 



Mime
View raw message