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