public RedisApplication(string connection)
 {
     RedisMultiplexer = ConnectionMultiplexer.Connect(connection);
     Database         = RedisMultiplexer.GetDatabase();
 }
Пример #2
0
 /// <summary>
 /// RedisCache
 /// </summary>
 public RedisCacheContext(IOptions <RedisOptions> options)
 {
     RedisMultiplexer = ConnectionMultiplexer.Connect(options.Value.ConnectionString);
     RedisDatabase    = RedisMultiplexer.GetDatabase(options.Value.DataBaseIndex);
 }