Class LifetimeCacheExtensions
- Namespace
- LfrlAnvil.Chrono.Extensions
- Assembly
- LfrlAnvil.Chrono.dll
Contains ILifetimeCache<TKey, TValue> extension methods.
public static class LifetimeCacheExtensions
- Inheritance
-
LifetimeCacheExtensions
- Inherited Members
Methods
MoveTo<TKey, TValue>(ILifetimeCache<TKey, TValue>, Timestamp)
Moves the provided cache
to the given timestamp
.
public static void MoveTo<TKey, TValue>(this ILifetimeCache<TKey, TValue> cache, Timestamp timestamp) where TKey : notnull
Parameters
cache
ILifetimeCache<TKey, TValue>Source cache.
timestamp
TimestampTimestamp to move the cache to.
Type Parameters
TKey
Cache's key type.
TValue
Cache's value type.
Remarks
See Move(Duration) for more information.