cas¶
Protocols: memcached text · meta ms C(token)
Compare-and-swap: stores the value only if the entry's current CAS matches the one supplied. Use this with gets to do safe lockless updates.
Synopsis¶
Responses¶
| Token | Meaning |
|---|---|
STORED |
CAS matched and value was replaced |
EXISTS |
CAS did not match — someone else mutated the key |
NOT_FOUND |
The key does not exist |