jakarta-jcs-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron Smuts <aasm...@wisc.edu>
Subject RE: Key types supported in MRUMemoryCache
Date Thu, 04 Dec 2003 20:31:26 GMT
LRY uses a double linked list that is extremely efficient.  It couldn't
be any faster.

Aaron

> -----Original Message-----
> From: Snehal Khanna [mailto:snehal_haridas@yahoo.com]
> Sent: Thursday, December 04, 2003 2:01 PM
> To: Turbine JCS Users List
> Subject: RE: Key types supported in MRUMemoryCache
> 
> Thanks Aaron. A follow up question. MRUMemoryCache
> uses a LinkedList whereas LRUMemoryCache implements
> its own linked list using MemoryElementDescritor
> types.
> 
> Any reason why LRU manager does not use LinkedList?
> 
> Thanks
> Snehal
> 
> --- Aaron Smuts <aasmuts@wisc.edu> wrote:
> > The MRU memory manager is a sample of how to build
> > another memory plugin
> > if you so desired.  The LRU should be used, the one
> > configured in all
> > the sample configuration files.
> >
> > Aaron
> >
> > > -----Original Message-----
> > > From: Snehal Khanna
> > [mailto:snehal_haridas@yahoo.com]
> > > Sent: Thursday, December 04, 2003 12:27 PM
> > > To: JCS
> > > Subject: Key types supported in MRUMemoryCache
> > >
> > > Does anyone know why the update method of
> > > MRUMemoryCache expects keys to be of type String?
> > >
> > > This is the code I am referring to:
> > > synchronized ( lockMe )
> > > {
> > >    map.put( key, ce );
> > >    if ( replace )
> > >    {
> > >      // the slowest method I've ever seen
> > >      mrulist.remove( ( String ) key );
> > >    }
> > >    mrulist.addFirst( ( String ) key );
> > > }
> > >
> > > Thanks,
> > > Snehal
> > >
> > > __________________________________
> > > Do you Yahoo!?
> > > Protect your identity with Yahoo! Mail
> > AddressGuard
> > > http://antispam.yahoo.com/whatsnewfree
> > >
> > >
> >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > turbine-jcs-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail:
> > turbine-jcs-user-help@jakarta.apache.org
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > turbine-jcs-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> > turbine-jcs-user-help@jakarta.apache.org
> >
> 
> 
> __________________________________
> Do you Yahoo!?
> Protect your identity with Yahoo! Mail AddressGuard
> http://antispam.yahoo.com/whatsnewfree
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
turbine-jcs-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
turbine-jcs-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-jcs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-jcs-user-help@jakarta.apache.org


Mime
View raw message