pub async fn cache<T, E, F, Fut>(
key: &str,
opts: CacheOptions,
f: F,
) -> Result<T, E>Expand description
Memoize an async computation in the data cache.
Memoize f in the global data cache.
pub async fn cache<T, E, F, Fut>(
key: &str,
opts: CacheOptions,
f: F,
) -> Result<T, E>Memoize an async computation in the data cache.
Memoize f in the global data cache.