Skip to main content

cache_handler

Function cache_handler 

Source
pub async fn cache_handler(
    __arg0: State<Arc<CacheState>>,
    req: Request,
    next: Next,
) -> Response
Expand description

Tower middleware factory: wrap the API router with axum::middleware::from_fn_with_state(state, cache_handler).