easywechat使用redis缓存

浏览:2838 发布日期:2019/06/22 分类:求助交流 关键字: easywechat
tp5.1在使用easywechat是想把缓存替换成redis,替换后发现easywechat自动维护的缓存值没有写入,我redis是可以正常使用的,我代码哪里写错了吗

图片怎么上传不上来啊
代码如下:
```php
$this->app = Factory::openPlatform($openConfig);
// 绑定缓存
$cache = Cache::init();
$cache = $cache->handler();
$this->app->rebind('cache', $cache);
```
最佳答案
评论( 相关
后面还有条评论,点击查看>>