MemoryCacheOptions.SizeLimit Property

Definition

Gets or sets the maximum size of the cache.

C#
public long? SizeLimit { get; set; }

Property Value

Remarks

Caution

There might be transient states while the cache is full but blocks are being released on a background thread. In this state, unexpected behavior might occur if the cache is being overutilized.

Applies to