CacheEntryExtensions.SetPriority(ICacheEntry, CacheItemPriority) Method
Definition
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.
Sets the priority for keeping the cache entry in the cache during a memory pressure tokened cleanup.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::Caching::Memory::ICacheEntry ^ SetPriority(Microsoft::Extensions::Caching::Memory::ICacheEntry ^ entry, Microsoft::Extensions::Caching::Memory::CacheItemPriority priority);
public static Microsoft.Extensions.Caching.Memory.ICacheEntry SetPriority (this Microsoft.Extensions.Caching.Memory.ICacheEntry entry, Microsoft.Extensions.Caching.Memory.CacheItemPriority priority);
static member SetPriority : Microsoft.Extensions.Caching.Memory.ICacheEntry * Microsoft.Extensions.Caching.Memory.CacheItemPriority -> Microsoft.Extensions.Caching.Memory.ICacheEntry
<Extension()>
Public Function SetPriority (entry As ICacheEntry, priority As CacheItemPriority) As ICacheEntry
Parameters
- entry
- ICacheEntry
The entry to set the priority for.
- priority
- CacheItemPriority
The CacheItemPriority to set on the entry.
Returns
The ICacheEntry for chaining.
Applies to
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.