/// <summary> /// Initializes a new instance of the <see cref="AbpRedisCacheDatabaseProvider"/> class. /// </summary> public AbpRedisCacheDatabaseProvider(AbpRedisCacheOptions options) { _options = options; _connectionMultiplexer = new Lazy <ConnectionMultiplexer>(CreateConnectionMultiplexer); }
public static AbpRedisCacheOptions UseSentinel(this AbpRedisCacheOptions options) { options.AbpStartupConfiguration .ReplaceService <IAbpRedisCacheDatabaseProvider, AbpRedisCacheDatabaseProvider>(DependencyLifeStyle.Singleton); return(options); }