src/CacheStorage.php
private function cacheVary(
        RequestInterface $request,
        ResponseInterface $response
    ) {
        $key = $this->getVaryKey($request);
        $this->cache->save($key, $this->normalizeVary($response), $this->getTtl($response));
    }
private function cacheVary(
        RequestInterface $request,
        ResponseInterface $response
    ) {
        $key = $this->getVaryKey($request);
        $this->cache->save($key, $this->normalizeVary($response), $this->getTtl($response));
    }
private function cacheVary ( RequestInterface $ request , ResponseInterface $ response ) { $ key = $ this -> getVaryKey ( $ request ) ; $ this -> cache -> save ( $ key , $ this -> normalizeVary ( $ response ) , $ this -> getTtl ( $ response ) ) ; }
Cache the Vary headers from a response.

@param RequestInterface  $request  The Request that generated the Vary
headers.
@param ResponseInterface $response The Response with Vary headers.
Cache the Vary headers from a response .