public DataLoader < K , V > prime ( K key , Exception error ) { Object cacheKey = getCacheKey ( key ) ; if ( ! futureCache . containsKey ( cacheKey ) ) { futureCache . set ( cacheKey , CompletableFutureKit . failedFuture ( error ) ) ; } return this ; }
Primes the cache with the given key and error .