public IRedisClientsManager GetRedisClientsManager(int millisecondsTimeout) { if (millisecondsTimeout <= 0) { return(_redisSentinel.Start()); } var clientsManager = ConnectionUtil.Connect(() => _redisSentinel.Start(), millisecondsTimeout, _logger); return(clientsManager); }
private void ConnectRedisServer(int millisecondsTimeout, CancellationToken cancellationToken = default(CancellationToken)) { _redisClient = ConnectionUtil.Connect(() => _redisClientsManager.GetClient(), millisecondsTimeout, Logger, cancellationToken); }