public RedisApplication(string connection) { RedisMultiplexer = ConnectionMultiplexer.Connect(connection); Database = RedisMultiplexer.GetDatabase(); }
/// <summary> /// RedisCache /// </summary> public RedisCacheContext(IOptions <RedisOptions> options) { RedisMultiplexer = ConnectionMultiplexer.Connect(options.Value.ConnectionString); RedisDatabase = RedisMultiplexer.GetDatabase(options.Value.DataBaseIndex); }