2nd May 2008

Memcache Append

The Memcache protocol specification defines a command “Append” that looks very useful. You can use it to add data to an existing key without having to do a read/write (and deal with race-conditions that can introduce).

The only catch is that the standard PHP Memcache client implementation I’m using doesn’t seem to support it. So I think I’m out of luck until someone adds it to the standard PHP memcache client library I use.

Of course this is all open source so I’m probably just supposed to grab the PHP sources and add it myself, right? Wow does that sound like a lot of effort…

Update- I discovered that version 3.0 of the Memcache PHP client library supports append. They are on 3.0.1 now but the status is still officially “beta” so I guess I’ll just wait a bit more, but its good to see this is coming soon. Also note that you need the memcached server version 1.2.4 for append.

posted in Technology, Developers | 0 Comments