net9.0
namespace Microsoft.Extensions.Caching.Memory
{
    public class MemoryCacheOptions : IOptions<MemoryCacheOptions!>
    {
        [EditorBrowsable(EditorBrowsableState.Never)]
        [Obsolete("This property is retained only for compatibility.  Remove use and instead call MemoryCache.Compact as needed.", true)]
        public bool CompactOnMemoryPressure { get; set; }
    }
}
nuget.org
0.0 %
Reference this API
0.0 %
Set property
Assembly Microsoft.Extensions.Caching.Memory , Version=9.0.0.0, PublicKeyToken=adb9793829ddae60
Obsolete This property is retained only for compatibility. Remove use and instead call MemoryCache.Compact as needed.
.NET 5.06.07.08.09.0
.NET Core 2.02.12.23.03.1
.NET Framework 4.6.14.6.24.74.7.14.7.24.84.8.1
.NET Standard 2.02.1
Platform Specific Frameworks
net9.0 (neutral)
net9.0-android 21.022.023.024.025.026.027.028.029.030.031.032.033.034.0
net9.0-ios 10.010.110.210.311.011.111.211.311.412.012.112.212.312.413.013.113.213.313.413.513.614.014.114.214.314.414.515.015.215.416.016.116.216.417.017.2
net9.0-maccatalyst 13.113.213.313.413.514.214.314.414.515.015.215.416.116.216.417.017.2
net9.0-macos 10.1410.1510.1611.011.111.211.312.012.112.313.013.113.314.014.2
net9.0-tvos 10.010.110.211.011.111.211.311.412.012.112.212.312.413.013.213.313.414.014.214.314.414.515.015.215.416.016.116.417.017.2
net9.0-windows 7.08.010.0.1776310.0.1836210.0.1904110.0.2034810.0.2200010.0.22621
Platform Restrictions

For the selected framework the property getter is supported on all OS platforms.

For the selected framework the property setter is supported on all OS platforms.

  • Built-in API
  • Package-provided API

05/02/2024
An error has occurred. This application may no longer respond until reloaded. Reload 🗙