Skip to main content

ResponseCachePolicy

Type Alias ResponseCachePolicy 

Source
pub type ResponseCachePolicy<C> = CachePolicy<CacheValue<<C as CacheableResponse>::Cached>, C>;
Expand description

Cache policy for responses.

Type alias that specializes CachePolicy for response caching:

  • Cacheable variant contains a CacheValue with the cached representation
  • NonCacheable variant contains the original response

Aliased Type§

pub enum ResponseCachePolicy<C> {
    Cacheable(CacheValue<<C as CacheableResponse>::Cached>),
    NonCacheable(C),
}

Variants§

§

Cacheable(CacheValue<<C as CacheableResponse>::Cached>)

Entity should be cached.

§

NonCacheable(C)

Entity should not be cached; pass through directly.