public static function getDoctrineCacheInstance(Cache $doctrineCache, $maxFailures = 20, $retryTimeout = 30) {
        $storage = new ArrayDecorator(new DoctrineCacheAdapter($doctrineCache));
        return new CircuitBreaker($storage, $maxFailures, $retryTimeout);
    }