Skip to main content

load

Function load 

Source
pub async fn load(client: &Client, force_refresh: bool) -> Result<Catalog>
Expand description

Returns the catalog, from cache where it is fresh and from the network otherwise.

force_refresh ignores freshness; a forced refresh that fails leaves the cache file intact and returns the previously cached catalog.