CAS Delete support in any Python memcached client?

2013-12-12 Thread mumbler
Hi all, Just tried (and failed) to find any Python client with support for the new-ish CAS operations on the binary protocol (i.e. CAS delete etc.). Does anyone know of one - or have any plans for one? Or is there a fork of the C libmemcached library which supports it? -- --- You received t

Re: CAS Delete support in any Python memcached client?

2013-12-14 Thread dormando
On Thu, 12 Dec 2013, mumb...@gmail.com wrote: > Hi all, > > Just tried (and failed) to find any Python client with support for the > new-ish CAS operations on the binary protocol (i.e. CAS delete etc.). Does > anyone know of one - or have any plans for one? Or is there a fork of the C > libmemca

Re: CAS Delete support in any Python memcached client?

2013-12-15 Thread James Haggerty
A brief squiz at the delete function seems to suggest it doesn't: http://bazaar.launchpad.net/~tangent-trunk/libmemcached/1.2/view/head:/libmemcached/delete.cc Am I missing something? (the most popular native Python clients use the text protocol, so can only do cas set; the others use libmemcach

Re: CAS Delete support in any Python memcached client?

2013-12-15 Thread Hirotaka Yamamoto
In fact, the binary protocol specifies CAS operations only for Set/Add/Replace. Delete with CAS seems unspecified. On Sunday, December 15, 2013 8:02:36 PM UTC+9, James Haggerty wrote: > > A brief squiz at the delete function seems to suggest it doesn't: > > > http://bazaar.launchpad.net/~tangent-

Re: CAS Delete support in any Python memcached client?

2013-12-16 Thread James Haggerty
My reading of the binary protocol is that there is space for CAS but the behaviour is unspecified. But the source certainly seems to support it: https://github.com/memcached/memcached/blob/master/memcached.c#L2191 As do the release notes :) http://code.google.com/p/memcached/wiki/ReleaseNotes140