php运用memcache的完整实例(2)

<?php /** * Created by PhpStorm. * User: lenovo * Date: 2020/12/28 * Time: 14:31 */ $mem = new Memcache(); //连接memcache $mem->connect("127.0.0.1",'11211'); //清空缓存 //$mem->flush(); if($mem->flush()){ echo "<script>location='index.php'</script>"; } ?>

总结

到此这篇关于php运用memcache的文章就介绍到这了,更多相关php运用memcache内容请搜索脚本之家以前的文章或继续浏览下面的相关文章希望大家以后多多支持脚本之家!

您可能感兴趣的文章:

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:http://www.heiqu.com/c35f0461056b9fb84171062d3a90ed52.html