Type Alias CacheBust

Source
pub type CacheBust = Arc<dyn Fn(&Parts, &Option<CacheKey>, &str) -> Vec<String> + Send + Sync>;
Expand description

A closure that takes http::request::Parts, Option<CacheKey>, the default cache key (&str) and returns Vec<String> of keys to bust the cache for. An empty vector means that no cache busting will be performed.

Aliased Typeยง

pub struct CacheBust { /* private fields */ }