我这个缓存 哪儿写的不对吗?
$key='code';
if(Cache::has($key)){
return $this->success(Cache::get($key));
}else{
Cache::put($key, ['2423'], 10);
return $this->success(Cache::get($key));
}
为什么每次请求都是走else 理论上短时间重复请求 应该走if呀?
推荐文章: