That happens in https://github.com/evan/memcached/blob/1be9c9d57068822280a0668bbefe0195167fcce4/ext/libmemcached-0.32/libmemcached/memcached_get.c#L229-L236 as a side-effect of requiring CAS support.