MaxSize Property MaxSize Gets or sets the maximum size of the cache (number of entries) before entries get evicted. Declaration public int MaxSize { get; set; } Property Value int