Quantcast
Channel: Active questions tagged redis+java - Stack Overflow
Viewing all articles
Browse latest Browse all 2204

How to replace subscribe() in RBatchReactive.execute().subscribe()

$
0
0

Given below is a piece of Java Micronaut code I am using for removing entries from redis. But this code does not remove entries from redis. If I use batch.execute().subscribe(); then it is working, but I do not want to use subcribe(), so is there any solution for that?

private Mono<Void> removeFromRedis(String[] entries) {    var batch = redis.createBatch();    batch.getMap("map_name").fastRemove(entries);    batch.execute(); //if I use batch.execute().subscribe(); here then it will work    return Mono.empty();}

Viewing all articles
Browse latest Browse all 2204

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>