win10,php7安装memcache
参考:https://blog.csdn.net/the_lone_wolfs/article/details/79099858
去github上clone这个地址https://github.com/nono303/PHP7-memcache-dll
然后先看下自己的phpinfo里面
到\PHP7-memcache-dll\vc14\x64\ts拿一下7.0的dll,然后重命名成php_memcache.dll,粘贴到D:\wamp\wamp64\bin\php\php7.0.10\ext重启服务器,刷新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;