Skip to main content

CacheState

Trait CacheState 

Source
pub trait CacheState<T>
where T: KeysInterface,
{ // Required method fn cache(&self) -> Option<T>; }
Expand description

Simple trait which the axum::extract::State should implement for using the middleware for cache retrieval

Required Methods§

Source

fn cache(&self) -> Option<T>

Implementors§