prime method
void
prime(
- Id key,
- 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);