Beispiel #1
0
 public RedisCache(IConnectionMultiplexer multiplexer, IRedisValueSerializer serializer)
 {
     _multiplexer = multiplexer;
     _serializer  = serializer;
 }
Beispiel #2
0
 public RedisTests()
 {
     _multiplexer = ConnectionMultiplexer.Connect("localhost");
     _serializer = new JsonRedisValueSerializer();
     _cache = new RedisCache(_multiplexer, _serializer);
 }
Beispiel #3
0
 public RedisTests()
 {
     _multiplexer = ConnectionMultiplexer.Connect("localhost");
     _serializer  = new JsonRedisValueSerializer();
     _cache       = new RedisCache(_multiplexer, _serializer);
 }