Type Definition kvarn::comprash::LifetimeCache

source ·
pub type LifetimeCache<T> = (T, (OffsetDateTime, HeaderValue, Option<Duration>));
Expand description

The item used in the cache. T represents the cached data.

The other information is for lifetimes of the cache. The OffsetDateTime is when the item was added and the Duration how long the item can be kept. A Duration value of None means the item will never expire.