TimeSpanTtl public class TimeSpanTtl : ITtlStrategy Defines a ttl strategy which will cache items for the specified TimeSpan. Documentation Code public TimeSpanTtl(TimeSpan ttl) Initializes a new instance of the TimeSpanTtl class. public TimeSpan GetTtl(Context context) Gets the TimeSpan for which to keep items cached.