Will the 'set' and the 'get' operation conflict?

Marcus Rueckert darix at web.de
Tue Jul 31 17:50:43 UTC 2007


On 2007-07-31 09:46:48 -0700, Dustin Sallings wrote:
> On Jul 30, 2007, at 20:01 , John.H wrote:
> 
> >I have two clients, one is runing 'set' keys only,another is 'get'  
> >keys only.
> >My question is will the two operation conflict when the two client  
> >'set' and 'get' the same key at the same time?
> 
> 	Conflict in what way?  If you don't have deterministic ordering on  
> your operations, you won't have predictable results, but the cache  
> will be internally consistent.
> 
> 	Under classic memcached, no two operations are executed at the same  
> time (it's single-threaded).  I don't fully understand the new multi- 
> threaded code, but it's probably safe to assume that no two  
> operations touch the same cache element at the same time.

i think the bigger issue for him are 2 different server accessing the
same memcached element.

    darix

-- 
           openSUSE - SUSE Linux is my linux
               openSUSE is good for you
                   www.opensuse.org


More information about the memcached mailing list