CacheEntryExtensions.AddExpirationToken(ICacheEntry, IChangeToken) 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.
Expires the cache entry if the given IChangeToken expires.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::Caching::Memory::ICacheEntry ^ AddExpirationToken(Microsoft::Extensions::Caching::Memory::ICacheEntry ^ entry, Microsoft::Extensions::Primitives::IChangeToken ^ expirationToken);
public static Microsoft.Extensions.Caching.Memory.ICacheEntry AddExpirationToken (this Microsoft.Extensions.Caching.Memory.ICacheEntry entry, Microsoft.Extensions.Primitives.IChangeToken expirationToken);
static member AddExpirationToken : Microsoft.Extensions.Caching.Memory.ICacheEntry * Microsoft.Extensions.Primitives.IChangeToken -> Microsoft.Extensions.Caching.Memory.ICacheEntry
<Extension()>
Public Function AddExpirationToken (entry As ICacheEntry, expirationToken As IChangeToken) As ICacheEntry
Parameters
- entry
- ICacheEntry
The ICacheEntry.
- expirationToken
- IChangeToken
The IChangeToken that causes the cache entry to expire.
Returns
The ICacheEntry for chaining.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.