<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="11.0.0-preview.3.26207.106" />

Microsoft.Extensions.Caching.Memory.CacheEntry

sealed class CacheEntry : ICacheEntry, IDisposable
public IList<IChangeToken> ExpirationTokens { get; }

Gets the IChangeToken instances which cause the cache entry to expire.

public object Key { get; }

public IList<PostEvictionCallbackRegistration> PostEvictionCallbacks { get; }

Gets or sets the callbacks will be fired after the cache entry is evicted from the cache.

public CacheItemPriority Priority { get; set; }

Gets or sets the priority for keeping the cache entry in the cache during a memory pressure triggered cleanup. The default is Normal.

public TimeSpan? SlidingExpiration { get; set; }

Gets or sets how long a cache entry can be inactive (e.g. not accessed) before it will be removed. This will not extend the entry lifetime beyond the absolute expiration (if set).

public object Value { get; set; }

public void Dispose()