Skip to main content

build_from_uri

Function build_from_uri 

Source
pub fn build_from_uri(uri: &str) -> Result<Arc<dyn CacheBackend>>
Expand description

Parse uri into a BackendConfig and build the backend registered under its scheme.

Returns an error if:

  • the URI cannot be parsed,
  • no backend is registered for that scheme, or
  • the constructor itself fails.