cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gerhard Froehlich <g-froehl...@gmx.de>
Subject RE: IT'S TIME TO REDO YOUR TESTS, GENTLEMEN!
Date Wed, 22 Aug 2001 15:05:51 GMT
> Gerhard,
> 
> It's not an inner class :)
stupid, eh :)..
>        /** ..put the new object in the cache, on the top of course ... */
>   -    this.cache.put(key, new
> CacheObject(value,System.currentTimeMillis(),serialisedFlag));
>   +    this.cache.put(key, value);
>   +    this.mrulist.remove(key);
>        this.mrulist.addFirst(key);
> 
> mrulist was growing twice faster then cache.
Ahhh I see. But it only happens when the cache gets an object from
the store which is not valid and re-put it in the store with the same key.
Calling the remove() method from the cache would have the same effect...

Cheers
Gerhard

-- 
Gerhard Fröhlich
g-froehlich@gmx.de

"black holes are,
when GOD is dividing by zero" 

GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net



---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message