pingora_cache::put

Trait 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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§