protected function checkExpire($cache_data) { $time = time(); $is_expire = intval($cache_data['expire']) !== 0 && intval($cache_data['time']) + intval($cache_data['expire']) < $time; if ($is_expire) { return false; } return true; }