MemoryCacheOptions.CompactOnMemoryPressure 属性

定义

注意

This property is retained only for compatibility. Remove use and instead call MemoryCache.Compact as needed.

获取或设置一个值,该值指示是否在超出最大大小时压缩缓存。

public:
 property bool CompactOnMemoryPressure { bool get(); void set(bool value); };
[System.Obsolete("This property is retained only for compatibility.  Remove use and instead call MemoryCache.Compact as needed.", true)]
public bool CompactOnMemoryPressure { get; set; }
[<System.Obsolete("This property is retained only for compatibility.  Remove use and instead call MemoryCache.Compact as needed.", true)>]
member this.CompactOnMemoryPressure : bool with get, set
Public Property CompactOnMemoryPressure As Boolean

属性值

属性

适用于