/**
* PHP调用memcached 的测试代码
*
* @param
* @author 网: www.jb51.cc
**/
$cacheServer = new Memcached();
$cacheServer->addServer('localhost',11211);
$cacheServer->set('foo','bar');
$value = $cacheServer->get('foo');
echo $value . "\n";
/*** 来自编程之家 jb51.cc(jb51.cc) ***/
原文链接:https://www.f2er.com/php/528659.html