'onCacheMissResume' stores everything into cache
cybuch opened this issue · comments
cybuch commented
I use caffeine AsyncLoadingCache and on async reload if I return empty mono with signature Mono<Signal> it's not stored into cache. However I use it with CacheMono just like the example from documentation
CacheMono.lookup(cache.synchronous().asMap(), request)
.onCacheMissResume { someMono(request) }
and there's a problem. Everything returned from someMono
is cached - empty signal, error signal and so on. Have you thought about not storing errors in cache?
Simon Baslé commented
superseded by #237