Replace various Processor.cache calls with their Sinks equivalent

Proprietary

As of 3.5 Processors are deprecated and Sinks are preferred.

org.openrewrite.reactive.reactor.ReactorProcessorCacheToSinkRecipes
mod run . --recipe=org.openrewrite.reactive.reactor.ReactorProcessorCacheToSinkRecipes

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.

Recipe list

It runs these recipes, in this order.

  1. Replace ReplayProcessor.cacheLast() with Sinks.many().replay().latest()
  2. Replace ReplayProcessor.cacheLast() with Sinks.many().replay().latest()