public RedisConnectionManager(IRedisServerSettings settings, IRedisConnection redisConnection) { this.settings = settings; //this.connectionString = new Lazy<string>(GetConnectionString); //this.connectionString = GetConnectionString(); this.connection = redisConnection; }
public RedisConnectionWrapper(IRedisServerSettings settings, ILogger logger) { _settings = settings; _logger = logger; _connectionString = new Lazy <string>(GetConnectionString); }
public RedisCacheStore(IRedisConnection connection, IRedisServerSettings settings) { _connection = connection; _subscriber = _connection.GetSubscriber(); _database = _connection.GetDatabase(); _server = _connection.GetServer(_connection.GetEndPoints().FirstOrDefault()); _settings = settings; }
public RedisCacheStore(IRedisConnectionWrapper connectionWrapper, IRedisServerSettings settings, ISerializer serializer) { _database = connectionWrapper.Database(settings.DefaultDb); _serializer = serializer; _readFlag = settings.PreferSlaveForRead ? CommandFlags.PreferSlave : CommandFlags.PreferMaster; }
public RedisConnectionWrapper(ILogger logger) { this.settings = ConfigurationManager.GetSection("redis") as RedisServerSettings; this.logger = logger; this.connectionString = GetConnectionString(); }
/// <inheritdoc /> public RedisConnection(IRedisServerSettings settings) { _settings = settings; _connectionString = new Lazy <string>(GetConnectionString); }