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 |
---|---|
reactor.core.publisher.Flux<VALUE> |
andWriteWith(BiFunction<KEY,List<reactor.core.publisher.Signal<VALUE>>,reactor.core.publisher.Mono<Void>> writer)
Set up the
cache writer BiFunction to use to store the source
data into the cache in case of cache miss. |
reactor.core.publisher.Flux<VALUE> andWriteWith(BiFunction<KEY,List<reactor.core.publisher.Signal<VALUE>>,reactor.core.publisher.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.