public function fetch($key) { $item = $this->cachePool->getItem($key); $this->lastItem = $item; $cache = $item->get(); if ($cache instanceof CacheEntry) { return $cache; } return null; }