Interface ILifetimeCache<TKey, TValue>
Represents a generic cache of keyed entries with a limited lifetime.
public interface ILifetimeCache<TKey, TValue> : IReadOnlyLifetimeCache<TKey, TValue>, ICache<TKey, TValue>, IReadOnlyCache<TKey, TValue>, IReadOnlyDictionary<TKey, TValue>, IReadOnlyCollection<KeyValuePair<TKey, TValue>>, IEnumerable<KeyValuePair<TKey, TValue>>, IEnumerable where TKey : notnull
Type Parameters
TKeyEntry key (identifier) type.
TValueEntry value type.
- Inherited Members
- Extension Methods
Remarks
Reading entries resets their lifetime.
Methods
Move(Duration)
Moves this cache forward in time and removes entries with elapsed lifetimes.
void Move(Duration delta)
Parameters
deltaDurationDuration to add to the CurrentTimestamp.