Skip to main content

create_cache

Function create_cache 

Source
pub fn create_cache(config: &CacheConfig) -> Result<Box<dyn Cache>, Error>
Expand description

Create cache instance

§Errors

Returns an error if cache type is not supported or configuration is invalid