Closed tarrall closed 13 years ago
Looks like it got fixed relatively recently in libmemcached: https://launchpad.net/libmemcached/+announcement/5548
I got the basics working for an upgrade on branch '0.47', maybe you can take a stab at it?
Hmm, benchmarks suggest that 0.47 is a performance regression. :-( I guess we should just patch it in place.
0.32:
set: libm:ascii 0.610000 0.970000 1.580000 ( 3.654520)
set: libm:bin 0.500000 0.890000 1.390000 ( 3.118490)
get: libm:ascii 0.820000 1.000000 1.820000 ( 3.914436)
0.47:
set: libm:ascii 0.670000 1.240000 1.910000 ( 4.110841)
set: libm:bin 0.570000 1.340000 1.910000 ( 3.962299)
get: libm:ascii 0.790000 1.240000 2.030000 ( 4.129513)
Fixed by hand in 1.2.
Setting the :prefix_key has no effect if you use binary_protocol:
I believe the issue might be that libmemcached doesn't null-terminate the key for you: https://github.com/andreiz/php-memcached/commit/6abbe4b9f486224b4174764a4e7de15a73a6fa16