Function reset_cache_handler

Source
pub async fn reset_cache_handler<CacheT, CacheKeyT>(
    __arg0: State<CacheT>,
) -> Response
where CacheT: Cache<CacheKeyT>, CacheKeyT: CacheKey,
Available on crate feature axum only.
Expand description

Axum request handler that resets the cache and returns no_content_handler.

Expects the cache to be available as state. See Router::with_state.