I have the following code:
final T savedEntity = repository.save(entity);
entityCacheService.putIntoCache(entity.getId(), savedEntity);
Now I made my repository reactive. My question is how to make the cache store now mono and flux.
final Mono<T> savedEntity = repository.save(entity);
entityCacheService.putIntoCache(entity.getId(), <<What here>>);
I came across the following Mono and Flux Caching but it's only for lookup and since I am also a beginner in reactive programming.