populateMultiCache method

void populateMultiCache(
  1. K key,
  2. C context,
  3. M cacheInstantiator(),
  4. V value,
)

Implementation

void populateMultiCache(
  K key,
  C context,
  M Function() cacheInstantiator,
  V value,
) {
  var cache = getCache(context, cacheInstantiator);
  cache[key] = value;
}