MemoryCacheEntryExtensions Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provide extensions methods for MemoryCacheEntryOptions operations.
public ref class MemoryCacheEntryExtensions abstract sealed
public static class MemoryCacheEntryExtensions
type MemoryCacheEntryExtensions = class
Public Module MemoryCacheEntryExtensions
- Inheritance
-
MemoryCacheEntryExtensions
Add |
Expires the cache entry if the given IChangeToken expires. |
Register |
Fires the given callback after the cache entry is evicted from the cache. |
Register |
Fires the given callback after the cache entry is evicted from the cache. |
Set |
Sets an absolute expiration date for the cache entry. |
Set |
Sets an absolute expiration time, relative to now. |
Set |
Sets the priority for keeping the cache entry in the cache during a memory pressure tokened cleanup. |
Set |
Sets the size of the cache entry value. |
Set |
Sets how long the cache entry can be inactive (e.g. not accessed) before it will be removed. This will not extend the entry lifetime beyond the absolute expiration (if set). |
Produkt | Versjoner |
---|---|
.NET | 8 (package-provided), 9 (package-provided) |
.NET Framework | 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided) |
.NET Standard | 2.0 (package-provided) |
.NET-tilbakemelding
.NET er et åpen kilde-prosjekt. Velg en kobling for å gi tilbakemelding: