batchingCache
fun <Identifier, Context, Failure, Value> batchingCache(scope: CoroutineScope, workers: Int = 1, transform: suspend FlowCollector<Triple<Identifier, Context, ProgressiveOutcome<Failure, Value>>>.(Set<Pair<Identifier, Context>>) -> Unit): ContextualCache<Identifier, Context, Failure, Value>(source)
Cache implementation which collects cache requests into batches which are queried at the same time.
This adapter is meant to be used as the first layer in a layer chain. By itself, it does no caching (all calls to get call transform). To learn more about layer chaining, see Cache. To learn more about the type parameters, see ContextualCache.
See also
Non-contextual equivalent