ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
```php cat >/application/nginx/html/blog/mc.php<<'EOF' <?php $memcache = new Memcache; $memcache->connect('10.0.0.21', 11211) or die ("Could not connect"); $memcache->set('key_oldboy', 'hello,oldgirl'); $get_value = $memcache->get('key_oldboy'); echo $get_value; ?> EOF [root@cache01 ~]# printf "get key20171117\r\n"|nc 10.0.0.21 11211 VALUE key20171117 0 11 hello,world END ```