Delen via


MemoryCacheOptions.SizeLimit Property

Definition

Gets or sets the maximum size of the cache.

public:
 property Nullable<long> SizeLimit { Nullable<long> get(); void set(Nullable<long> value); };
public long? SizeLimit { get; set; }
member this.SizeLimit : Nullable<int64> with get, set
Public Property SizeLimit As Nullable(Of Long)

Property Value

Remarks

The units are arbitrary. Users specify the size of every entry they add to the cache. If no size is specified, the entry has no size and the size limit is ignored for that entry. For more information, see Use SetSize, Size, and SizeLimit to limit cache size.

Applies to