There is a 'containsKey()' method which performs as you described.

However, if the cache is being accessed from various different places
then i would propose that it's not a good idea to be littering these
sorts of tests etc all over the place.

-----Original Message-----
From: Alexis Agahi [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 05, 2002 11:16 AM
To: [EMAIL PROTECTED]
Subject: Re: Cache : Addtional Functionality

Maybe a simple way to get what you need is to have a
boolean isInCache( Object key )
method that can indicate quickly if the requiered object is in cache 
without performing a reorder?

--
Al


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

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

Reply via email to