incr is atomic and get returns the current value stored. i don't see any unexpected behavior in your test- if you incr 200 once, it's 201. twice, it's 202...
awl On Dec 21, 2010 9:59 PM, "speedfirst" <[email protected]> wrote: > For example, a key value pair "testkey"="200" has existed in a > memcached server. When 2 or more write threads issue "incr testkey 1" > simultaneously with nonblocking manner. And there is a read thread > only for reading response from memcached. What the response is? > > My test show: > 201CRLF > 202CRLF > END > > Is this "END" part of correct response? Not found this in the protocol > text file. > > Thans.
