例如我有PHP代码
<?php
$memc = new Memcached();
$memc->setOption(Memcached::OPT_DISTRIBUTION, Memcached::DISTRIBUTION_CONSISTENT);
$servers = array
(
array ("127.0.0.1", 11211),
array ("127.0.0.1", 11212)
);
$memc->addServers($servers);
if($memc->quit())
echo "OK!";
?>
当我执行此代码时,我收到:致命错误:调用未定义的方法Memcached :: quit()