MemoryCacheOptions.SizeLimit Propriété
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Obtient ou définit la taille maximale du 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)
Valeur de propriété
Remarques
Les unités sont arbitraires. Les utilisateurs spécifient la taille de chaque entrée qu’ils ajoutent au cache. Si aucune taille n’est spécifiée, l’entrée n’a aucune taille et la limite de taille est ignorée pour cette entrée. Pour plus d’informations, consultez Utiliser SetSize, Size et SizeLimit pour limiter la taille du cache.