pub type CacheKey = Arc<dyn Fn(&Parts) -> String + Send + Sync>;
Expand description
A closure that takes http::request::Parts
and returns a String
.
By default, the cache key is a combination of the request method and uri with a colon in between.
Aliased Typeยง
struct CacheKey { /* private fields */ }