src/CacheStorage.php
private function getCacheKey(RequestInterface $request, array $vary = [])
    {
        $key = $request->getMethod() . ' ' . $request->getUrl();

        // If Vary headers have been passed in, fetch each header and add it to
        // the cache key.
        foreach ($vary as $header) {
            $key .= " $header: " . $request->getHeader($header);
        }

        return $this->keyPrefix . md5($key);
    }
private function getCacheKey(RequestInterface $request, array $vary = [])
    {
        $key = $request->getMethod() . ' ' . $request->getUrl();

        // If Vary headers have been passed in, fetch each header and add it to
        // the cache key.
        foreach ($vary as $header) {
            $key .= " $header: " . $request->getHeader($header);
        }

        return $this->keyPrefix . md5($key);
    }
private function getCacheKey ( RequestInterface $ request , array $ vary = [ ] ) { $ key = $ request -> getMethod ( ) . ' ' . $ request -> getUrl ( ) ; // If Vary headers have been passed in, fetch each header and add it to // the cache key. foreach ( $ vary as $ header ) { $ key .= " $header: " . $ request -> getHeader ( $ header ) ; } return $ this -> keyPrefix . md5 ( $ key ) ; }
Hash a request URL into a string that returns cache metadata.

@param RequestInterface $request The Request to generate the cache key
for.
@param array            $vary    (optional) An array of headers to vary
the cache key by.

@return string
Hash a request URL into a string that returns cache metadata .