if (!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
时好时坏,是使用的方式不对吗
最佳答案