public void TestFixtureSetup() { _connectionSettings = new RedisConnectionSettings { ConnectionString = "localhost:6379", Db = 2 }; _multiplexer = ConnectionMultiplexer.Connect(_connectionSettings.ConnectionString); }
public RedisOutputCache(IJsonSerializer jsonSerializer, IRedisConnectionSettings connectionSettings) { _jsonSerializer = jsonSerializer; _connectionSettings = connectionSettings; _multiplexer = ConnectionMultiplexer.Connect(_connectionSettings.ConnectionString); _options = null;//TODO: }
public RedisOutputCache(IJsonSerializer jsonSerializer, IRedisConnectionSettings connectionSettings) { _jsonSerializer = jsonSerializer; _connectionSettings = connectionSettings; _multiplexer = new Lazy <IConnectionMultiplexer>(() => ConnectionMultiplexer.Connect(_connectionSettings.ConnectionString)); }