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 On Mon, Dec 16, 2013 at 5:56 PM, Hirotaka Yamamoto <[email protected]>wrote: > 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-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 libmemcached, which doesn't seem to support >> it) >> >> >> On Sun, Dec 15, 2013 at 12:42 PM, dormando <[email protected]> wrote: >> >>> On Thu, 12 Dec 2013, [email protected] 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 libmemcached library which supports it? >>> > >>> >>> The C libmemcached library *should* support it already. I don't know why >>> any of the python wrappers wouldn't :/ Have you contacted the author of >>> one? >>> >>> -- >>> >>> --- >>> You received this message because you are subscribed to a topic in the >>> Google Groups "memcached" group. >>> To unsubscribe from this topic, visit https://groups.google.com/d/ >>> topic/memcached/eWs-mbyQuew/unsubscribe. >>> To unsubscribe from this group and all its topics, send an email to >>> [email protected]. >>> >>> For more options, visit https://groups.google.com/groups/opt_out. >>> >> >> -- > > --- > You received this message because you are subscribed to a topic in the > Google Groups "memcached" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/memcached/eWs-mbyQuew/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > -- --- You received this message because you are subscribed to the Google Groups "memcached" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
