Trait pingora_cache::put::CachePut

source ·
pub trait CachePut {
    // Required method
    fn cache_defaults() -> &'static CacheMetaDefaults;

    // Provided method
    fn cacheable(&self, response: &ResponseHeader) -> RespCacheable { ... }
}
Expand description

The interface to define cache put behavior

Required Methods§

Provided Methods§

source

fn cacheable(&self, response: &ResponseHeader) -> RespCacheable

Return whether to cache the asset according to the given response header.

Object Safety§

This trait is not object safe.

Implementors§