php调用memcached 的测试代码
<?php $cacheServer = new Memcached(); $cacheServer->addServer('localhost', 11211); $cacheServer->set('foo', 'bar'); $value = $cacheServer->get('foo'); echo $value . "\n";
php调用memcached 的测试代码
<?php $cacheServer = new Memcached(); $cacheServer->addServer('localhost', 11211); $cacheServer->set('foo', 'bar'); $value = $cacheServer->get('foo'); echo $value . "\n";