getMultiCached method

V getMultiCached(
  1. K key,
  2. C context,
  3. M cacheInstantiator(),
  4. V computer(),
)

Implementation

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

  return cache.getCached(key, computer);
}