pub async fn remember<S: CacheStore, T, F, Fut>(
store: &S,
key: &str,
ttl: Duration,
factory: F,
) -> CacheResult<T>Expand description
Remember a value for a given duration.
If the key exists, returns the cached value. If not, calls the factory function, caches the result, and returns it.