MemoryCacheEntryExtensions.SetPriority 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::MemoryCacheEntryOptions ^ SetPriority(Microsoft::Extensions::Caching::Memory::MemoryCacheEntryOptions ^ options, Microsoft::Extensions::Caching::Memory::CacheItemPriority priority);
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
- options
- MemoryCacheEntryOptions
The option on which to set the priority.
- priority
- CacheItemPriority
The CacheItemPriority to set on the option.
Returns
The MemoryCacheEntryOptions so that additional calls can be chained.
Applies to
Совместная работа с нами на GitHub
Источник этого содержимого можно найти на GitHub, где также можно создавать и просматривать проблемы и запросы на вытягивание. Дополнительные сведения см. в нашем руководстве для участников.