KEY - Key typeVALUE - Value typepublic static interface CacheFlux.FluxCacheBuilderCacheWriter<KEY,VALUE>
cache writer BiFunction to use to store the source
data into the cache in case of cache miss. The source Flux is materialized
into a List of Signal (completion/error signals included) to be
stored.| Modifier and Type | Method and Description |
|---|---|
Flux<VALUE> |
andWriteWith(java.util.function.BiFunction<KEY,List<Signal<VALUE>>,Mono<Void>> writer)
Set up the
cache writer BiFunction to use to store the source
data into the cache in case of cache miss. |
Flux<VALUE> andWriteWith(java.util.function.BiFunction<KEY,List<Signal<VALUE>>,Mono<Void>> writer)
cache writer BiFunction to use to store the source
data into the cache in case of cache miss. The source Flux is materialized
into a List of Signal (completion/error signals included) to be
stored.writer - BiFunction of key-signals to Mono<Void>
(which represents the completion of the cache write operation.Flux that transparently looks up data from a cache
and store data into the cache.