IPC::Lock::Memcached
Ivan Krstic
krstic at fas.harvard.edu
Fri Oct 21 15:14:02 PDT 2005
Cahill, Earl wrote:
> So don't really want the lock getting released everytime someone calls
> GET_LOCK(). I can't really believe that is the functionality.
You're misunderstanding it. You can hold one lock per connection (but
the lock is server-wide!), and each GET_LOCK() releases the lock you
currently have in that connection, if any.
> I just tested and did two successive GET_LOCK() calls and
> both of them got the lock
Obtain a lock in one connection, and then try obtaining it from another.
It'll fail.
--
Ivan Krstic <krstic at fas.harvard.edu> | 0x147C722D
More information about the memcached
mailing list