<PackageReference Include="Microsoft.Extensions.Caching.Abstractions" Version="11.0.0-preview.7.26381.103" />

Microsoft.Extensions.Caching.Hybrid.HybridCacheEntryOptions

public sealed class HybridCacheEntryOptions
Specifies additional options (for example, expiration) that apply to a HybridCache operation. When options can be specified at multiple levels (for example, globally and per-call), the values are composed; the most granular non-null value is used, with null values being inherited. If no value is specified at any level, the implementation can choose a reasonable default.
public TimeSpan? Expiration { get; set; }

Gets or sets the overall cache duration of this entry, passed to the backend distributed cache.

public HybridCacheEntryFlags? Flags { get; set; }

Gets or sets additional flags that apply to the requested operation.

public TimeSpan? LocalCacheExpiration { get; set; }

Gets or sets the expiration for the local (in-process) cache entry.

public long? LocalSize { get; set; }

Gets or sets the size to assign to entries in the local (in-process) cache.