cache报错

浏览:249 发布日期:2021/05/07 分类:ThinkPHP6专区 关键字: cache
cache方法可以指定缓存标识:
Db::table('user')->cache('key',60)->find();
报错Return value of think\db\PDOConnection::pdoQuery() must be of the type array, string returned
cache(true)就没问题,在模型里面使用cache(字符串)就会出现这个问题
最佳答案
评论( 相关
后面还有条评论,点击查看>>