protected function readData()
{
		$data = Cache::read(__FUNCTION__);
    	if (empty($data)) {
    		$data = $this->queryData(/* build your own logic to fetch data*/);
    		Cache::write(__FUNCTION__, $data);
    	}
    	return $data;
}

Leave a Reply

Your email address will not be published. Required fields are marked *

  +  72  =  74