Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AbpRedisCacheDatabaseProvider"/> class.
 /// 构造函数
 /// </summary>
 public AbpRedisCacheDatabaseProvider(AbpRedisCacheOptions options)
 {
     _options = options;
     _connectionMultiplexer = new Lazy <ConnectionMultiplexer>(CreateConnectionMultiplexer);
 }
 /// <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 void UseProtoBuf(this AbpRedisCacheOptions options)
 {
     options.AbpStartupConfiguration
     .ReplaceService <IRedisCacheSerializer, ProtoBufRedisCacheSerializer>(DependencyLifeStyle.Transient);
 }