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

Dustin Sallings dustin at spy.net
Tue Jul 31 16:46:48 UTC 2007


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.

-- 
Dustin Sallings


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.danga.com/pipermail/memcached/attachments/20070731/9a10f1dc/attachment.html


More information about the memcached mailing list