You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jcs-users@jakarta.apache.org by Jorge Medina <jm...@e-dialog.com> on 2010/01/08 21:40:54 UTC

Do I need to synchronize access to a JCS cache?

I am using JCS with a in-memory cache using LRU policy.

Do I need to synchronize my calls to get() and put() operations or is JCS taking care of the multithreaded access?

-Jorge


Re: Do I need to synchronize access to a JCS cache?

Posted by Aaron Smuts <as...@yahoo.com>.
That's correct.  JCS is thread safe.  

Aaron

--- On Fri, 1/8/10, techie09 <te...@gmail.com> wrote:

> From: techie09 <te...@gmail.com>
> Subject: Re: Do I need to synchronize access to a JCS cache?
> To: jcs-users@jakarta.apache.org
> Date: Friday, January 8, 2010, 2:15 PM
> 
> as far as i know, JCS takes care of this. You need not
> specifically sync the
> calls.
> 
> -thanks,
> kalyan
> 
> 
> 
> jordiang wrote:
> > 
> > I am using JCS with a in-memory cache using LRU
> policy.
> > 
> > Do I need to synchronize my calls to get() and put()
> operations or is JCS
> > taking care of the multithreaded access?
> > 
> > -Jorge
> > 
> > 
> > 
> 
> -- 
> View this message in context: http://old.nabble.com/Do-I-need-to-synchronize-access-to-a-JCS-cache--tp27082018p27083142.html
> Sent from the JCS - Users mailing list archive at
> Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jcs-users-help@jakarta.apache.org
> 
> 

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


Re: Do I need to synchronize access to a JCS cache?

Posted by techie09 <te...@gmail.com>.
as far as i know, JCS takes care of this. You need not specifically sync the
calls.

-thanks,
kalyan



jordiang wrote:
> 
> I am using JCS with a in-memory cache using LRU policy.
> 
> Do I need to synchronize my calls to get() and put() operations or is JCS
> taking care of the multithreaded access?
> 
> -Jorge
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/Do-I-need-to-synchronize-access-to-a-JCS-cache--tp27082018p27083142.html
Sent from the JCS - Users mailing list archive at Nabble.com.


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