标签:
<?php header ("Content-type: text/html;charset=utf-8"); $memcache = new Memcache; $memcache->connect("127.0.0.1",11211); echo "Server‘s version: " . $memcache->getVersion() . "<br />"; $data = array( ‘url‘=>‘http://iw3c.com‘, ‘name‘=>‘Aries‘s的部落‘ ); $memcache->set("key",$data,0,10); echo "Store data in the cache (data will expire in 10 seconds)<br />"; echo "Data from the cache:<br />"; var_dump($memcache->get("key"));
Windows 7和WAMP Server下安装memcache
标签:
原文地址:http://www.cnblogs.com/jiangyouxiong/p/4421831.html