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

Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions

Represents the cache options applied to an entry of the IMemoryCache instance.
public DateTimeOffset? AbsoluteExpiration { get; set; }

Gets or sets an absolute expiration date for the cache entry.

Gets or sets an absolute expiration time, relative to now.

public IList<IChangeToken> ExpirationTokens { get; }

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

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 long? Size { get; set; }

Gets or sets the size of the cache entry value.

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).