I understand that Memcached is blocked (by default), so no client can interfere with any other client operation. If so, how does Memcached handle two or more clients trying to update the same object at the same time?
How does memcached handle multiple versions of an object? Just take the one whose update ended last and evicted other versions from the cache? Is the database actively invalidating objects cached on the Memcached server?
Memcached holds only the latest version of an object. If you receive, modify and bet, you have no guarantee that the offer applies to the same value as get. You can use CAS ( gets , cas ) operations if you need to synchronize.
gets
cas