Since memcached version 1.4.3, the item deletion function (Memcache::delete()) in the PECL memcache package fails with an error similar to “CLIENT_ERROR bad command line format. Usage: delete
The memcached team have recently released version 1.4.4, adding backwards compatibility support for clients such as the PECL memcache extension and rectifying this issue, but for those of you who would like to patch the PECL extension directly, I’m putting a patched version of beta 3.0.4 up for download over at GoSquared Labs.
This is a simple fix which uncomments the code in memcache_ascii_protocol.c and memcache_binary_protocol.c that pertains to the “linger time” of the deleted item. However, simply upgrading to version 1.4.4 of memcached should rectify the PECL extension problem anyway.