using Memcache in PHP
1. Test code
This is memcache official test memcache code
<?php$memcache = Memcache_connect (' localhost ', 11211), if ($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. Under Windows detection Memcache
: http://download.csdn.net/detail/wujiangwei567/8571637
Tool description Detailed Address: http://www.cnblogs.com/xffy1028/archive/2013/02/01/2861706.html
The use of memcache in PHP and the Memcache monitoring tool in Windows