Answer the question
In order to leave comments, you need to log in
Error with Memcached::set
I can't find an error in 3 lines of code.
$m = new Memcached();
var_dump($m->addServer('localhost', 11211));
var_dump($m->set("aaaa","bbb"));
bool(true)
bool(false)
Answer the question
In order to leave comments, you need to log in
Memcached::addServer() adds the specified server to the server pool. No connection is established to the server at this time
Therefore, it returns true (false is only returned when the parameters are invalid).
See what Memcached::getResultMessage() says after that
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question