reactor / reactor-addons

Additional optional modules for the Reactor project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

'onCacheMissResume' stores everything into cache

cybuch opened this issue · comments

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?

superseded by #237