Https://stackoverflow.com/questions/34952502/memcache-for-php7-on-windows,
git download Address: https://github.com/nono303/PHP7-memcache-dll
Baidu Network Disk Link: Http://pan.baidu.com/s/1ge9MvEN Password: Zwoh
Download according to your PHP version
After the download is unpacked,
Just go to the Php/ext directory and put Php_memcache.dll in there.
Then add a section to the php.ini in the PHP directory
Extension=php_memcache.dll
When you are done, restart Apache or Nginx.
Then in the PHP page Output phpinfo ();
Check that the memcache is loaded successfully.
if successfully loaded, you can do memcache test on a php page
1 2 3 4 5 6 7 8 9 10 11 |
<?php//phpinfo (); $memcache = new Memcache; $memcache->connect (' 127.0.0.1 ', 11211) or die (' shit '); $memcache-> set (' key ', ' Hello memcache! '); $ out = $memcache-> get (' key '); echo $ out; |
a successful word will output