kvarn::comprash

Type Alias ResponseCache

source
pub type ResponseCache = MokaCache<UriKey, LifetimeCache<Arc<VariedResponse>>>;
Expand description

A MokaCache with appropriate type parameters for a response cache.

Aliased Type§

struct ResponseCache {
    pub cache: Cache<UriKey, (Arc<VariedResponse>, (OffsetDateTime, HeaderValue, Option<Duration>))>,
    /* private fields */
}

Fields§

§cache: Cache<UriKey, (Arc<VariedResponse>, (OffsetDateTime, HeaderValue, Option<Duration>))>

The inner cache, with direct access allowed. Please check the size of your item before inserting.