在thinkphp5中修改config文件下的cache.php文件中的驱动方式参数:将'type'=>'File'修改成:'type'=>'memcache'即可。 在thinkphp5中内置了file,redis,memcache常用的缓存系统。