On Sat, 12 May 2001, Vic Cekvenich wrote:

> What is a good design or idea or utility to create a cache collection
> of N number of elements Least Recently Used?
> 
> Say a hash map with synchronized get and put, that would track LRU and
> lock at the element level? Must be of fixed size and work at element
> level.
> 
> Suggestion please and thanks in advance for any comments.
>
> Vic
> 

There is some work going on in the Jakarta Commons project to define a
nice reusable "cache" API for this sort of thing.  It hasn't gotten as far
as real live code yet, but that shouldn't be too far away.  I'd subscribe
to the "jakarta-commons" mailing list to keep track of what's going on
there.

As a general note, a bunch of the general purpose Struts utility
components (like BeanUtils and the Digester) are being migrated over to
Commons because they are generally useful - a future version of Struts
will use the Commons versions instead of the ones currently in
org.apache.struts.util.

Craig


Reply via email to