Esempio n. 1
0
 public static void UseProtoBuf(this StudioXRedisCacheOptions options)
 {
     options.StudioXStartupConfiguration
     .ReplaceService <IRedisCacheSerializer, ProtoBufRedisCacheSerializer>(DependencyLifeStyle.Transient);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="StudioXRedisCacheDatabaseProvider"/> class.
 /// </summary>
 public StudioXRedisCacheDatabaseProvider(StudioXRedisCacheOptions options)
 {
     this.options          = options;
     connectionMultiplexer = new Lazy <ConnectionMultiplexer>(CreateConnectionMultiplexer);
 }