KEY
- Key typeVALUE
- Value typepublic static interface CacheMono.MonoCacheBuilderCacheWriter<KEY,VALUE>
cache writer BiFunction
to use to store the source
data into the cache in case of cache miss.
This BiFunction takes the target key and a Signal
representing the value to
store, and returns a Mono<Void>
that represents the completion
of the cache write operation.
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<VALUE> |
andWriteWith(BiFunction<KEY,reactor.core.publisher.Signal<? extends 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.Mono<VALUE> andWriteWith(BiFunction<KEY,reactor.core.publisher.Signal<? extends 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. This BiFunction takes the target key
and a Signal
representing the value to store, and returns a Mono<Void>
that represents the completion of the cache write operation.writer
- Cache writer BiFunction
Mono
that transparently looks up data from a cache
and store data into the cache.