Table of Contents

Interface ITtlStrategy

Namespace
Polly.Caching
Assembly
Polly.dll

Defines a strategy for providing time-to-live durations for cacheable results.

public interface ITtlStrategy

Methods

GetTtl(Context)

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

Ttl GetTtl(Context context)

Parameters

context Context

The execution context.

Returns

Ttl

A Ttl representing the remaining Ttl of the cached item.