src/CachePlugin.php
protected function createCacheItem(RequestInterface $request)
    {
        $key = sha1($this->generator->generate($request));

        return $this->pool->getItem($key);
    }
protected function createCacheItem(RequestInterface $request)
    {
        $key = sha1($this->generator->generate($request));

        return $this->pool->getItem($key);
    }
protected function createCacheItem ( RequestInterface $ request ) { $ key = sha1 ( $ this -> generator -> generate ( $ request ) ) ; return $ this -> pool -> getItem ( $ key ) ; }
Create a cache item for a request.

@param \Psr\Http\Message\RequestInterface $request

@return \Psr\Cache\CacheItemInterface
Create a cache item for a request .