allen8807 / memcached

Automatically exported from code.google.com/p/memcached
0 stars 0 forks source link

atomic commands #267

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I count the stats with memcache. 
1. i get the value and increase it and set again. 
2. directly increase it with "increment" command.

What is the expected output? What do you see instead?

the first option counts missing because "get and set" commands isn't atomic?

memcached 1.4.13 - centos 

Original issue reported on code.google.com by bi...@muttefik.com on 14 Apr 2012 at 11:45

GoogleCodeExporter commented 9 years ago
If you have a support question, please use the mailing list. You probably want 
the CAS command, or just use incr/decr

Original comment by dorma...@rydia.net on 21 Apr 2012 at 8:06