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; }
public CacheConfiguration() { this._firstLevelCacheType = FirstLevelCacheType.ConcurrentDictionary; this._secondLevelCacheType = SecondLevelCacheType.None; this._serializerType = SerializerType.ProtoBufNet; }