<PackageReference Include="Polly" Version="6.0.0-v6alpha0001" />

ITtlStrategy<TResult>

public interface ITtlStrategy<TResult>
Defines a strategy for providing time-to-live durations for cacheable results.
Ttl GetTtl(Context context, TResult result)

Gets a TTL for a cacheable item, given the current execution context.