Re: Any operation in JCS cache similar to ConcurrentHashMap.putIfAbsent() ?

Aaron Smuts <[email protected]> Wed, 9 Sep 2009 07:31:22 -0700 (PDT)
Newsgroups gmane.comp.jakarta.turbine.jcs.devel
Message-ID <[email protected]>
Nope.  There is a putSafe method, but it won't do what you want.=0A=0AAre y=
ou worried about redundant puts?  =0A=0A--- On Tue, 9/8/09, Marvin-Chin-Pan=
[email protected] <[email protected]> wrote:=0A=0A> From: Marvin=
[email protected] <[email protected]>=0A> Subject: Any =
operation in JCS cache similar to ConcurrentHashMap.putIfAbsent() ?=0A> To:=
 [email protected]=0A> Date: Tuesday, September 8, 2009, 8:30 PM=
=0A> =0A> =0A> =0A>  =0A>  =0A> Any operation in JCS cache similar to=0A> C=
oncurrentHashMap.putIfAbsent() ?=0A> =0A>  =0A> =0A> =0A> Hi JCS Dev, =0A> =
=0A> =0A> =A0 I am trying to use=0A> JCS cache in concurrent environment. W=
onder if there any=0A> function in JCS cache similar to that of putIfAbsent=
() in=0A> ConcurrentHashMap? =0A> =0A> Rdgs,=0A> =0A> =0A> Marvin=0A> =0A> =
=0A>  =0A> =0A> -----Inline Attachment Follows-----=0A> =0A> Visit our webs=
ite at http://www.ubs.com=0A> =0A> This message contains confidential infor=
mation and is=0A> intended only =0A> for the individual named.=A0 If you ar=
e not the named=0A> addressee you =0A> should not disseminate, distribute o=
r copy this=0A> e-mail.=A0 Please =0A> notify the sender immediately by e-m=
ail if you have=0A> received this =0A> e-mail by mistake and delete this e-=
mail from your system.=0A> =A0=A0=A0 =0A> E-mails are not encrypted and can=
not be guaranteed to be=0A> secure or =0A> error-free as information could =
be intercepted, corrupted,=0A> lost, =0A> destroyed, arrive late or incompl=
ete, or contain=0A> viruses.=A0 The sender =0A> therefore does not accept l=
iability for any errors or=0A> omissions in the =0A> contents of this messa=
ge which arise as a result of e-mail=0A> transmission.=A0 =0A> If verificat=
ion is required please request a hard-copy=0A> version.=A0 This =0A> messag=
e is provided for informational purposes and should=0A> not be =0A> constru=
ed as a solicitation or offer to buy or sell any=0A> securities =0A> or rel=
ated financial instruments.=0A> =0A>  =0A> UBS reserves the right to retain=
 all messages. Messages are=0A> protected=0A> and accessed only in legally =
justified cases.=0A> =0A> -------------------------------------------------=
--------------------=0A> To unsubscribe, e-mail: jcs-dev-unsubscribe@jakart=
a.apache.org=0A> For additional commands, e-mail: [email protected]=
he.org