コード例 #1
0
 public CacheConfiguration WithSecondLevel(int databaseId, params RedisServer[] servers)
 {
     if (servers == null) throw new ArgumentNullException(nameof(servers));
     this._secondLevelCacheType = SecondLevelCacheType.Redis;
     this._redisDatabase = databaseId;
     this._redisInstances = servers.ToList();
     return this;
 }
コード例 #2
0
 public CacheConfiguration()
 {
     this._firstLevelCacheType = FirstLevelCacheType.ConcurrentDictionary;
     this._secondLevelCacheType = SecondLevelCacheType.None;
     this._serializerType = SerializerType.ProtoBufNet;
 }