protected function fetchObjectFromCache($key)
{
$empty = [false, null, []];
$file = $this->getFilePath($key);
if (!$this->filesystem->has($file)) {
return $empty;
}
try {
$data = unserialize($this->filesystem->read($file));
} catch (FileNotFoundException $e) {
return $empty;
}
if ($data[0] !== null && time() > $data[0]) {
foreach ($data[2] as $tag) {
$this->removeListItem($this->getTagKey($tag), $key);
}
$this->forceClear($key);
return $empty;
}
return [true, $data[1], $data[2]];
}