Exemple #1
0
        public IRedisClientsManager GetRedisClientsManager(int millisecondsTimeout)
        {
            if (millisecondsTimeout <= 0)
            {
                return(_redisSentinel.Start());
            }

            var clientsManager = ConnectionUtil.Connect(() => _redisSentinel.Start(), millisecondsTimeout, _logger);

            return(clientsManager);
        }
Exemple #2
0
 private void ConnectRedisServer(int millisecondsTimeout, CancellationToken cancellationToken = default(CancellationToken))
 {
     _redisClient = ConnectionUtil.Connect(() => _redisClientsManager.GetClient(), millisecondsTimeout, Logger, cancellationToken);
 }