参考:https://blog.csdn.net/the_lone_wolfs/article/details/79099858
去github上clone这个地址https://github.com/nono303/PHP7-memcache-dll
然后先看下自己的phpinfo里面
win10,php7安装memcache
到\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;

win10,php7安装memcache

相关文章:

  • 2021-12-04
  • 2021-07-19
  • 2021-05-30
  • 2021-11-16
  • 2021-12-04
  • 2021-12-13
猜你喜欢
  • 2021-08-24
  • 2021-05-24
  • 2021-06-25
  • 2021-05-13
  • 2022-01-02
  • 2021-11-05
  • 2021-12-04
相关资源
相似解决方案