prime method

void prime(
  1. Id key,
  2. Data value
)

Primes the cache with the provided key and value. If the key already exists, no change is made.

To forcefully prime the cache, clear the key first with loader..clear(key)..prime(key, value).

Implementation

void prime(Id key, Data value) => _cache.putIfAbsent(key, () => value);