随笔分类 -  redis

摘要:控制器代码 <?php namespace app\admin\controller; use Phinx\Util\Util; use think\Controller; use think\Request; use think\cache\driver\Redis as rediss; use 阅读全文
posted @ 2021-03-13 20:29 Conqueror· 阅读(122) 评论(0) 推荐(0)
摘要:1.redis 的连接 : //实例化redis $redis = new Redis(); //连接 $redis->connect('127.0.0.1', 6379); //检测是否连接成功 echo "Server is running: " . $redis->ping(); // 输出结 阅读全文
posted @ 2021-03-13 19:31 Conqueror· 阅读(266) 评论(0) 推荐(0)