MemoryCacheEntryOptions.Priority 属性

定义

获取或设置在内存压力触发的清理过程中保留缓存中的缓存项的优先级。 默认值为 Normal

public:
 property Microsoft::Extensions::Caching::Memory::CacheItemPriority Priority { Microsoft::Extensions::Caching::Memory::CacheItemPriority get(); void set(Microsoft::Extensions::Caching::Memory::CacheItemPriority value); };
public Microsoft.Extensions.Caching.Memory.CacheItemPriority Priority { get; set; }
member this.Priority : Microsoft.Extensions.Caching.Memory.CacheItemPriority with get, set
Public Property Priority As CacheItemPriority

属性值

适用于