อ่านในภาษาอังกฤษ

แชร์ผ่าน


CacheEntryExtensions.SetPriority(ICacheEntry, 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.ICacheEntry SetPriority (this Microsoft.Extensions.Caching.Memory.ICacheEntry entry, Microsoft.Extensions.Caching.Memory.CacheItemPriority priority);

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

ผลิตภัณฑ์ เวอร์ชัน
.NET 6 (package-provided), 7 (package-provided), 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)