Memcached,PHP,为什么不退出()方法工作?

时间:2014-03-26 19:00:47

标签: php memcached quit

例如我有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()

0 个答案:

没有答案