php tp5 redis的使用

方式: 安装php的redis扩展 启动redis服务php 在tp的控制器中web <?php use think\cache\driver\Redis; public function test() { $redis = new Redis(); $redis->set('test','hello redis'); echo $redis->get('test');
相关文章
相关标签/搜索