标签:
<?php $mem = new Memcache; $mem->connect(‘127.0.0.1‘, 11211) or die ("Could not connect"); $mem->set(‘key‘, ‘This is a test!‘, 0, 60); $val = $mem->get(‘key‘); echo $val; ?>
PHP连接Memcache代码
原文地址:http://www.cnblogs.com/chenqionghe/p/4591938.html