Skip to main content

fetch_multi

Function fetch_multi 

Source
pub async fn fetch_multi(
    store: &dyn CacheStore,
    keys: &[&str],
    ttl_secs: Option<u64>,
    render: impl Fn(&str) -> Value,
) -> Result<BTreeMap<String, Value>>
Expand description

Read several keys, computing (and caching) any misses with render.