Example:
puts
in db/memcacheputs
in db/memcacheUpdate 3. is lost.
What strategy/pattern can be used to prevent this?
You probably want to use cas
and gets
commands:
https://code.google.com/p/memcached/wiki/NewCommands#cas
EDIT GAE memcache is actually compatible with memcached. Here's the reference from GAE:
https://developers.google.com/appengine/docs/python/memcache/clientclass#Client_cas
and final note:
https://developers.google.com/appengine/docs/python/memcache/clientclass#Memcached_compatibility
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With