Skip to main content

RequestCachePolicy

Type Alias RequestCachePolicy 

Source
pub type RequestCachePolicy<T> = CachePolicy<CacheablePolicyData<T>, T>;
Expand description

Cache policy for requests.

Type alias that specializes CachePolicy for request caching:

  • Cacheable variant contains CacheablePolicyData with the request and its key
  • NonCacheable variant contains the original request

Aliased Type§

pub enum RequestCachePolicy<T> {
    Cacheable(CacheablePolicyData<T>),
    NonCacheable(T),
}

Variants§

§

Cacheable(CacheablePolicyData<T>)

Entity should be cached.

§

NonCacheable(T)

Entity should not be cached; pass through directly.