Cache::Memcached::Lock

Perrin Harkins perrin at elem.com
Mon Sep 26 10:35:17 PDT 2005


On Mon, 2005-09-26 at 09:29 -0700, Cahill, Earl wrote:
> Though it doesn’t fully exist yet, I have been pondering writing a
> locking system built around memcached, and specifically the add
> method.  I wrote such a system for my own use the other night, would
> like to generalize it a bit and would like to open source it.  I would
> also like to pattern it around something open sourced from work to
> allow for locking over nfs, namely File::NFSLock

I've heard people say that File::lockf or Fcntl work for NFS locking.  I
haven't tested them myself.

I'm sure memcached would be fast at this, but I wonder if it's a good
idea to store locks in a cache.  Maybe a simple MySQL-based approach
would be safer.

- Perrin



More information about the memcached mailing list