original_string: protected function cacheResponse(RequestInterface $request, ResponseInterface $response)
      {
          $cacheItem = $this->createCacheItem($this->createKeyFromRequest($request));
          $value = $response->getBody()->__toString();
          $cacheItem->set($value);
  
          $this
              ->getCacheItemPool()
              ->save($cacheItem);
      }
code: protected function cacheResponse(RequestInterface $request, ResponseInterface $response)
      {
          $cacheItem = $this->createCacheItem($this->createKeyFromRequest($request));
          $value = $response->getBody()->__toString();
          $cacheItem->set($value);
  
          $this
              ->getCacheItemPool()
              ->save($cacheItem);
      }
code_tokens: protected function cacheResponse ( RequestInterface $ request , ResponseInterface $ response ) { $ cacheItem = $ this -> createCacheItem ( $ this -> createKeyFromRequest ( $ request ) ) ; $ value = $ response -> getBody ( ) -> __toString ( ) ; $ cacheItem -> set ( $ value ) ; $ this -> getCacheItemPool ( ) -> save ( $ cacheItem ) ; }
docstring: Caches a response by Request & Response.
  
  @param RequestInterface  $request  Request as identifier
  @param ResponseInterface $response Response to cache
  
  @author Benjamin Carl <opensource@clickalicious.de>
docstring_tokens: Caches a response by Request & Response .