MemoryCacheEntryExtensions.AddExpirationToken(MemoryCacheEntryOptions, IChangeToken) MemoryCacheEntryExtensions.AddExpirationToken(MemoryCacheEntryOptions, IChangeToken) MemoryCacheEntryExtensions.AddExpirationToken(MemoryCacheEntryOptions, IChangeToken) Method

Definition

Expire the cache entry if the given IChangeToken expires.

public static Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions AddExpirationToken (this Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions options, Microsoft.Extensions.Primitives.IChangeToken expirationToken);
static member AddExpirationToken : Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions * Microsoft.Extensions.Primitives.IChangeToken -> Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions
<Extension()>
Public Function AddExpirationToken (options As MemoryCacheEntryOptions, expirationToken As IChangeToken) As MemoryCacheEntryOptions
Parameters
expirationToken
IChangeToken IChangeToken IChangeToken

The IChangeToken that causes the cache entry to expire.

Returns

Applies to