1. Server-Side Installation 1.1
Http://download.csdn.net/detail/feiyuhit/5873533#comment
1.2 Installation
Place the Memcached folder of the downloaded compressed folder in the D packing directory
Open Command window with cmd, go to d:/memcached directory, enter memcached-d install
To see if the installation was successful, enter Memcached–h, and a message stating that the installation was successful
memcached-d Start memcached Service
memcached-d Restart re-starting memcached service
Memcached-d Stop|shutdown shutting down a running memcached service
1.3 Easy to use
1 //Connection2 $mem=NewMemcache;3 $mem->connect ("192.168.0.34", 11211);//The IP of which the computer is tested for itself4 //Save Data5 $mem->set (' Key1 ', ' This is first value ', 0, 60);6 $val=$mem->get (' Key1 ');7 Echo"Get Key1 Value:".$val." <br/> ";8 //Close Connection9 $mem->close ();
2. Client 2.1 Phpinfo Find the following information
2.2 Download Php_memcache.dll related knowledge
VC6 is Legacy Visual Studio 6 compiler, which is compiled with this compiler.
VC9 is the Visual Studio compiler, which is compiled with Microsoft's vs Editor.
Thread safe is threaded, and thread security checks are performed to prevent new requirements from exhausting system resources as the CGI execution of new threads starts.
Non thread safe is non-threaded and does not thread (thread) security checks at execution time.
2.3 Downloads Php_memcache.dll
Website: http://windows.php.net/downloads/pecl/releases/memcache/3.0.8/
Of course, there are other ways to download other versions of PHP
2.4 Extensions
Download the compressed folder as above URL to extract the Php_memcache.dll file and place it in the bin\php\php5.3.10\ext\ directory of the Wamp installation directory
Open php.ini, plus extension: extension=php_memcache.dll
Phpinfo () to see if extended memcache information is present, it is the responsibility to indicate that the extension was successful.
Win7 under Wamp extension memcache