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

Microsoft.Extensions.Caching.Hybrid.HybridCacheEntryContext

public sealed class HybridCacheEntryContext
Provides a mutable view of the cache entry options in effect for a single HybridCache operation, supplied to a factory callback so that it can adjust those options based on the result of the data fetch.
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.

public int Revision { get; }

Gets a value that increments whenever a property on this instance is changed.

Initializes a new instance of the HybridCacheEntryContext class, seeding its values from the supplied options.