Class SlidingTtl
Defines a ttl strategy which will cache items with a sliding ttl.
public class SlidingTtl : ITtlStrategy
- Inheritance
-
SlidingTtl
- Implements
- Inherited Members
Constructors
SlidingTtl(TimeSpan)
Constructs a new instance of the SlidingTtl ttl strategy.
public SlidingTtl(TimeSpan slidingTtl)
Parameters
slidingTtl
TimeSpanThe sliding timespan for which cache items should be considered valid.
Methods
GetTtl(Context)
Gets a TTL for the cacheable item.
public Ttl GetTtl(Context context)
Parameters
context
ContextThe execution context.