set(">
时间:2021-07-01 10:21:17 帮助过:23人阅读
这是memcache官方测试memcache代码
set("str_key", "String to store in memcached"); $memcache->set("num_key", 123); $object = new StdClass; $object->attribute = 'test'; $memcache->set("obj_key", $object); $array = Array('assoc'=>123, 345, 567); $memcache->set("arr_key", $array); var_dump($memcache->get('str_key')); var_dump($memcache->get('num_key')); var_dump($memcache->get('obj_key')); var_dump($memcache->get('lfxopenid'));}else { echo "Connection to memcached failed";}?>
2. windows下检测 memcache
下载地址:http://download.csdn.net/detail/wujiangwei567/8571637
工具介绍详细地址: