We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This is a follow up to aspnet/Caching#221. The 3.0 release will remove the obsolete MemoryCacheOptions APIs.
MemoryCacheOptions
Discussion: dotnet/extensions#1062.
3.0
MemoryCacheOptions.CompactOnMemoryPressure property was available.
MemoryCacheOptions.CompactOnMemoryPressure
MemoryCacheOptions.CompactOnMemoryPressure has been removed.
Automatically compacting the cache caused problems. We recommend compacting the cache when needed to avoid unexpected behavior.
To compact, downcast to MemoryCache and call Compact when needed.
MemoryCache
Compact
The text was updated successfully, but these errors were encountered:
scottaddie
Successfully merging a pull request may close this issue.
MemoryCache: obsolete API removed in 3.0
This is a follow up to aspnet/Caching#221. The 3.0 release will remove the obsolete
MemoryCacheOptions
APIs.Discussion: dotnet/extensions#1062.
Version introduced
3.0
Old behavior
MemoryCacheOptions.CompactOnMemoryPressure
property was available.New behavior
MemoryCacheOptions.CompactOnMemoryPressure
has been removed.Reason for change
Automatically compacting the cache caused problems. We recommend compacting the cache when needed to avoid unexpected behavior.
Recommended action
To compact, downcast to
MemoryCache
and callCompact
when needed.Category
Affected APIs
MemoryCacheOptions.CompactOnMemoryPressure
Issue metadata
The text was updated successfully, but these errors were encountered: