kgraphql / com.apurebase.kgraphql.test / SimpleDataLoaderImpl / prime

prime

open suspend fun prime(key: K, value: R): Unit

Primes the cache with the given values. After priming the BatchLoader will not be called with this key.

open suspend fun prime(key: K, value: Throwable): Unit

Primes the cache with the given Throwable. After priming the BatchLoader will not be called with this key, if DataLoaderOptions.cacheExceptions = true.