DataLoaderOptions<K, V, C> constructor

DataLoaderOptions<K, V, C>({
  1. bool? batch,
  2. int? maxBatchSize,
  3. void batchScheduleFn(
    1. void callback()
    )?,
  4. bool? cache,
  5. C cacheKeyFn(
    1. K
    )?,
  6. Cache<C, Future<V>>? cacheMap,
})

DataLoader configuration options. Optionally turn off batching or caching or provide a cache key function or a custom cache instance.

Implementation

DataLoaderOptions({
  this.batch,
  this.maxBatchSize,
  this.batchScheduleFn,
  this.cache,
  this.cacheKeyFn,
  this.cacheMap,
});