按文档配置:
![TP6使用redis操作报错Store [redis] not found. TP6使用redis操作报错Store [redis] not found.](https://img.manongw.com/uploads/images/2023/06/20230602/c9e08443dea790d22e87c1345ddfe12969d8b356.png)
然后调用redis:
![TP6使用redis操作报错Store [redis] not found. TP6使用redis操作报错Store [redis] not found.](https://img.manongw.com/uploads/images/2023/06/20230602/0f3bebe10ddf1ba4891f2a2db51cf2450f4bc6f1.png)
报错:
![TP6使用redis操作报错Store [redis] not found. TP6使用redis操作报错Store [redis] not found.](https://img.manongw.com/uploads/images/2023/06/20230602/befded390589cdfe72b06871c3e4f136b3725f89.png)
我的tp版本是6.0
网上找了半天,都是说redis配置忘记放在stores里面了,但是我这放里面还是报错。
![TP6使用redis操作报错Store [redis] not found. TP6使用redis操作报错Store [redis] not found.](https://img.manongw.com/uploads/images/2023/06/20230602/fd6d45703f26b57fb88f3601c85afb565949c182.png)
整了半天,要将配置文件default的默认值改成redis就可以了,我觉得因该是底层初始化哪有问题吧,没有深究。
按文档配置:
![TP6使用redis操作报错Store [redis] not found. TP6使用redis操作报错Store [redis] not found.](https://img.manongw.com/uploads/images/2023/06/20230602/c9e08443dea790d22e87c1345ddfe12969d8b356.png)
然后调用redis:
![TP6使用redis操作报错Store [redis] not found. TP6使用redis操作报错Store [redis] not found.](https://img.manongw.com/uploads/images/2023/06/20230602/0f3bebe10ddf1ba4891f2a2db51cf2450f4bc6f1.png)
报错:
![TP6使用redis操作报错Store [redis] not found. TP6使用redis操作报错Store [redis] not found.](https://img.manongw.com/uploads/images/2023/06/20230602/befded390589cdfe72b06871c3e4f136b3725f89.png)
我的tp版本是6.0
网上找了半天,都是说redis配置忘记放在stores里面了,但是我这放里面还是报错。
![TP6使用redis操作报错Store [redis] not found. TP6使用redis操作报错Store [redis] not found.](https://img.manongw.com/uploads/images/2023/06/20230602/fd6d45703f26b57fb88f3601c85afb565949c182.png)
整了半天,要将配置文件default的默认值改成redis就可以了,我觉得因该是底层初始化哪有问题吧,没有深究。
本文地址:https://m.manongw.com/article/494.html
文章来源:转载于萝卜网络博客,转载网址为http://www.luowebs.com/Skill_desc/35/777.html
版权申明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 ezhongheng@126.com 举报,一经查实,本站将立刻删除。