Reply to comment


Anonymous's picture

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?

Reply

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options

CAPTCHA
Please answer this question to show that you're not a stupid spam robot.
10 + 0 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.