KeyExtractor

Type Alias KeyExtractor 

Source
pub type KeyExtractor<Req, K> = Arc<dyn Fn(&Req) -> K + Send + Sync>;
Expand description

Function that extracts a cache key from a request.

Aliased Typeยง

pub struct KeyExtractor<Req, K> { /* private fields */ }