使用缓存报错:only array cache can be push

浏览:9274 发布日期:2019/12/10 分类:ThinkPHP6专区
错误路径:vendor/toptink/framework/src/think/cache/Driver.phpif (!is_array($item)) {
            throw new InvalidArgumentException('only array cache can be push');
        }
使用方式use think\facade\Cache
Cache::tag('_cached_1515146130')->remember('cache_test',function(){
   return ['value'=>1,'item'=>2];
},20)
TP版本:version 6.0.0

缓存类型: file

时好时坏,是使用的方式不对吗
最佳答案
评论( 相关
后面还有条评论,点击查看>>