ThinkChat🤖让你学习和工作更高效,注册即送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 ```