private function handleCacheListeners(RequestInterface $request, ResponseInterface $response, $cacheHit, $cacheItem)
    {
        foreach ($this->config['cache_listeners'] as $cacheListener) {
            $response = $cacheListener->onCacheResponse($request, $response, $cacheHit, $cacheItem);
        }

        return $response;
    }
private function handleCacheListeners(RequestInterface $request, ResponseInterface $response, $cacheHit, $cacheItem)
    {
        foreach ($this->config['cache_listeners'] as $cacheListener) {
            $response = $cacheListener->onCacheResponse($request, $response, $cacheHit, $cacheItem);
        }

        return $response;
    }
private function handleCacheListeners ( RequestInterface $ request , ResponseInterface $ response , $ cacheHit , $ cacheItem ) { foreach ( $ this -> config [ 'cache_listeners' ] as $ cacheListener ) { $ response = $ cacheListener -> onCacheResponse ( $ request , $ response , $ cacheHit , $ cacheItem ) ; } return $ response ; }
Call the cache listeners, if they are set.

@param RequestInterface        $request
@param ResponseInterface       $response
@param bool                    $cacheHit
@param CacheItemInterface|null $cacheItem

@return ResponseInterface
Call the cache listeners if they are set .