getMultiCachedAsync method

FutureOr<V> getMultiCachedAsync(
  1. K key,
  2. C context,
  3. M cacheInstantiator(),
  4. FutureOr<V> computer(),
)

Implementation

FutureOr<V> getMultiCachedAsync(
  K key,
  C context,
  M Function() cacheInstantiator,
  FutureOr<V> Function() computer,
) {
  var (o, cache) = _getIfCached(key, context, cacheInstantiator);
  if (o != null) return o;

  return cache.getCachedAsync(key, computer);
}