PHP连接MemcacheD测试代码
安装好了memcacheD,如何通过php来连接之,测试是否正确运行呢?下面这段代码可以帮助我们测试。注意,我们使用的是memcacheD. $cacheServer = new Memcached(); //create memcacheD instance $cacheServer->addServer(‘127.0.0.1’, 11211); //connect to memcacheD server $cacheServer->set(‘uname’, ‘flower’); // add key and […]