Kevinrob\GuzzleCache\Storage\Psr6CacheStorage::fetch PHP Method

fetch() public method

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