Thinkphp5
蜗牛他大大哥
蜗牛他大哥私人领地
展开
-
thinkphp5 redis使用
参数参考位置:thinkphp\library\think\cache\driver class Redis extends Driver { protected $options = [ 'host' => '127.0.0.1', 'port' => 6379, 'password' =>...原创 2018-07-30 15:54:33 · 3199 阅读 · 0 评论 -
Thinkphp redis 并发
Thinkphp5.0 数据库 tp5_goods字段:id,stock tp5_goods_user字段:id,pid,name php代码如下 <?php namespace app\index\controller; use think\Controller; use think\Model; use think\Cache; use think\cache\dri...原创 2018-07-30 15:59:29 · 744 阅读 · 0 评论 -
Thinkphp5笔记二:创建模块
Thinkphp5笔记二:php项目部署原创 2018-07-13 18:10:46 · 175 阅读 · 0 评论 -
Thinkphp5复合缓存 与db报错
症状:开启了复合缓存file、redis。在使用db查询的时候报错 'cache' => [ // 使用复合缓存类型 'type' => 'complex', // 默认使用的缓存 'default' => [ // 驱动方式 'type' =...原创 2018-07-30 15:51:07 · 523 阅读 · 0 评论 -
Thinkphp 队列 并发
php代码如下 <?php namespace app\index\controller; use think\Controller; use think\Model; use think\Cache; use think\cache\driver\Redis; use think\Session; use think\Db; class Index extends Controll...原创 2018-07-30 16:02:49 · 3926 阅读 · 1 评论