TimeToLiveExtension<CacheContentType> extension
Adds withTimeToLive to CachedValue.
- on
-
- CachedValue<
CacheContentType>
- CachedValue<
Methods
-
withTimeToLive(
{required Duration lifetime}) → CachedValue< CacheContentType> - Wraps the declared CachedValue with a TimeToLiveCachedValue.