
redis
文章平均质量分 67
尘埃338
开发路,任重而道远
展开
-
tp5 redis缓存
一 、//连接redisuse think\Cache; 转自:http://www.zzuyxg.top/article/444.html 转自:https://blog.youkuaiyun.com/qq_37462176/article/details/79408918 thinkphp采用cache类提供缓存功能支持,采用驱动方式,在使用缓存之前需要进行初始化操作。支持...转载 2018-08-12 22:10:38 · 21709 阅读 · 1 评论 -
thinkphp5 redis缓存驱动的简单应用
首先之前记得装好redis扩展头文件namespace app\index\controller;use think\Controller;use think\Db;use think\view;use think\Cache;use think\cache\driver\Redis; //使用复合型缓存类型 'cache' => [ //...原创 2018-08-26 10:57:38 · 1035 阅读 · 0 评论