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§
sourcefn cache_defaults() -> &'static CacheMetaDefaults
fn cache_defaults() -> &'static CacheMetaDefaults
Return the CacheMetaDefaults
Provided Methods§
sourcefn cacheable(&self, response: &ResponseHeader) -> RespCacheable
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.