Skip to main content

set_store

Function set_store 

Source
pub fn set_store(store: Arc<dyn CacheStore>) -> Result<(), Arc<dyn CacheStore>>
Expand description

Installs an already-built store as the global default (e.g. in tests). Returns Err with the store back if one was already installed.