<PackageReference Include="Polly" Version="5.1.1-v5-x-cachealpha0001" />

ITtlStrategy

public interface ITtlStrategy
Defines a strategy for providing time-to-live durations for cacheable results.
using System; namespace Polly.Caching { public interface ITtlStrategy { TimeSpan GetTtl(Context context); } }