Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After resetServerList() funcation call, couldn't add/set any value in the Memcached object #504

Open
rmanidev opened this issue Feb 18, 2022 · 2 comments

Comments

@rmanidev
Copy link

Hi,

We configured Memcached for DB cache, it was working fine in without persistence connection,
If we enabled the persistence connection, it's not working correctly. We have updated the latest version also but not working correctly the details are mentioned below.

PHP Version 7.2.14
memcached Version 3.1.3
libmemcached version 1.0.18

I'm using the libmemcached 1.0.18 version . I have an issue on this after resetserverlist() the Memcached object is not supported properly and the sample code is mentioned below :

$m = new \Memcached('persistent_id');

$m->setOption(Memcached::OPT_LIBKETAMA_COMPATIBLE, true);

var_dump($m->addServer($host, $port, '1'));
echo "<br>server List: ";var_dump($m->getServerList());
echo "<br>Reset Server Status: ";var_dump($m->resetServerList());
echo "<br>Add Server Status: ";var_dump($m->addServer($host, $port, '2'));
echo "<br>Server List: ";var_dump($m->getServerList());

Error Result is:

Reset Server Status: bool(true)
Add Server Status: bool(false)
Server List: array(0) { }

After resetServerList() function is not working properly.

how to solve this problem?

Thanks.

@remicollet
Copy link
Collaborator

remicollet commented Mar 10, 2022

Sorry, but cannot reproduce with 3.1.5 (latest stable) or 3.2.0RC1

P.S. also using libmemcached-awesome instead of old dead libmemcached

@m6w6
Copy link
Contributor

m6w6 commented Feb 28, 2023

@rmanidev ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants