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 |
---|---|
Mono<VALUE> |
andWriteWith(BiFunction<KEY,Signal<? extends 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. |
Mono<VALUE> andWriteWith(BiFunction<KEY,Signal<? extends VALUE>,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.