<PackageReference Include="Microsoft.Extensions.Caching.Abstractions" Version="10.0.11" />

Microsoft.Extensions.Caching.Memory.ICacheEntry

public interface ICacheEntry : IDisposable
Represents an entry in the IMemoryCache implementation. When Disposed, is committed to the cache.
namespace Microsoft.Extensions.Caching.Memory { public interface ICacheEntry : IDisposable { object Key { get; } object Value { get; set; } DateTimeOffset? AbsoluteExpiration { get; set; } TimeSpan? AbsoluteExpirationRelativeToNow { get; set; } TimeSpan? SlidingExpiration { get; set; } IList<IChangeToken> ExpirationTokens { get; } IList<PostEvictionCallbackRegistration> PostEvictionCallbacks { get; } CacheItemPriority Priority { get; set; } long? Size { get; set; } } }