Can memcached be used for locking?

谁说我不能喝 提交于 2019-12-04 20:34:18
Nishant

For anyone intersted in this, I have created a thread on Memcache Github at Will memcached work reliably for implementing a locking mechanism?. It explains some of the common caveats using get and set and how to avoid that using add. Some blogs also explain this problem if you can search for distributed locking using memcache on your favorite search engine.

There is also a related question Memcached, Locking and Race Conditions which might help on getting more clarity on memcache race conditions.

Here is more discussions on this at the Memcache Forum:

Thread 1 and Thread 2

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!