MemoryCacheEntryExtensions.SetPriority(MemoryCacheEntryOptions, CacheItemPriority) MemoryCacheEntryExtensions.SetPriority(MemoryCacheEntryOptions, CacheItemPriority) MemoryCacheEntryExtensions.SetPriority(MemoryCacheEntryOptions, CacheItemPriority) Method

Definition

Sets the priority for keeping the cache entry in the cache during a memory pressure tokened cleanup.

public static Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions SetPriority (this Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions options, Microsoft.Extensions.Caching.Memory.CacheItemPriority priority);
static member SetPriority : Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions * Microsoft.Extensions.Caching.Memory.CacheItemPriority -> Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions
<Extension()>
Public Function SetPriority (options As MemoryCacheEntryOptions, priority As CacheItemPriority) As MemoryCacheEntryOptions
Parameters
Returns

Applies to