http_cache

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`] of keys to bust the cache for. An empty vector means that no cache busting will be performed.

Aliased Typeยง

struct CacheBust { /* private fields */ }