$this->all () 是什么意思?
public function getAllCached()
{
// 尝试从缓存中取出 cache_key 对应的数据。如果能取到,便直接返回数据。
// 否则运行匿名函数中的代码来取出 links 表中所有的数据,返回的同时做了缓存。
return Cache::remember($this->cache_key,$this->cache_expire_in_minutes,function (){
return $this->all();
});
}
这里的
$this->all() 是什么意思??
推荐文章: