/// <summary>
 /// Initializes a new instance of the <see cref="T:EasyCaching.Redis.RedisDatabaseProvider"/> class.
 /// </summary>
 /// <param name="options">Options.</param>
 public RedisDatabaseProvider(IOptions <RedisDBOptions> options)
 {
     _options = options.Value;
     _connectionMultiplexer = new Lazy <ConnectionMultiplexer>(CreateConnectionMultiplexer);
 }
 public RedisDatabaseProvider(string name, RedisOptions options)
 {
     _options = options.DBConfig;
     _connectionMultiplexer = new Lazy <ConnectionMultiplexer>(CreateConnectionMultiplexer);
     _name = name;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="T:EasyCaching.Redis.RedisDatabaseProvider"/> class.
 /// </summary>
 /// <param name="options">Options.</param>
 public RedisDatabaseProvider(IOptionsMonitor <RedisOptions> options)
 {
     _options = options.CurrentValue.DBConfig;
     _connectionMultiplexer = new Lazy <ConnectionMultiplexer>(CreateConnectionMultiplexer);
 }