public static function getMemcachedInstance(\Memcached $memcached, $maxFailures = 20, $retryTimeout = 30) {
        $storage = new ArrayDecorator(new MemcachedAdapter($memcached));
        return new CircuitBreaker($storage, $maxFailures, $retryTimeout);
    }