memcached / memcached-proxylibs

compatibility and contributed lua libraries for memcached proxy
BSD 3-Clause "New" or "Revised" License
10 stars 3 forks source link

ptoblem with multiget #6

Closed Ufoton closed 2 weeks ago

Ufoton commented 1 month ago

Hello, Problem with multiget from PHP. https://www.php.net/manual/en/memcached.getmulti.php Even with mcp.CMD_ANY show error. this binary protocol is not supported?

Ufoton commented 1 month ago

simple scenario

<?php

$m = new Memcached(); $m->setOption(Memcached::OPT_BINARY_PROTOCOL, true); $m->addServer('memcached', 11211);

$items = array( 'key1' => 'value1', 'key2' => 'value2', 'key3' => 'value3' ); $m->setMulti($items); $result = $m->getMulti(array('key1', 'key3', 'badkey')); var_dump($result); ?>

work without $m->setOption(Memcached::OPT_BINARY_PROTOCOL, true);

dormando commented 1 month ago

Sorry, binary protocol isn't supported by the proxy. :(

The binary protocol was deprecated in general in 1.6.0: https://github.com/memcached/memcached/wiki/ReleaseNotes160

The old text and new meta protocols are supported.

dormando commented 3 weeks ago

@Ufoton Were you able to get this working, or was binary protocol critical for you?

I'd like to close out the issue, thanks!

Ufoton commented 3 weeks ago

Hi @dormando

Sorry I forgot to close the case. We are manage to switch to text protocol or redis. Symphony by default use binary only few components affected. Thanks