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 <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED]
> > 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:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to