Submitted by Christopher Chan (not verified) on Tue, 2010-04-27 05:16.
Hi, Sylvain Wallez:
Is it possible that two servers executing the code cache.add("lock:xyz", "1", System.currentTimeMillis() + 60000) at the same time will both return true? how did the memcached ensure atomic for test and set actions?
Hi, Sylvain Wallez:
Is it possible that two servers executing the code cache.add("lock:xyz", "1", System.currentTimeMillis() + 60000) at the same time will both return true? how did the memcached ensure atomic for test and set actions?