Skip to main content

init

Function init 

Source
pub async fn init() -> Result<Arc<dyn CacheStore>>
Expand description

Builds the cache store from config/<env>.yml and installs it as the global default, returning a handle. Idempotent: if already initialised, the existing store is returned and the freshly built one discarded. Call once at boot.