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

แชร์ผ่าน


CacheEntryExtensions.AddExpirationToken(ICacheEntry, IChangeToken) Method

Definition

Expires the cache entry if the given IChangeToken expires.

public static Microsoft.Extensions.Caching.Memory.ICacheEntry AddExpirationToken (this Microsoft.Extensions.Caching.Memory.ICacheEntry entry, Microsoft.Extensions.Primitives.IChangeToken expirationToken);

Parameters

expirationToken
IChangeToken

The IChangeToken that causes the cache entry to expire.

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)