I am using ReactiveRedisOperations to save data objects in Redis and this call returns a Mono as per the api. I notice that if I don't do anything with this Mono return than this code does not do anything. Just trying to understand how this works. I would like below code to save every Object to Redis in this loop, however it does not do so, please share what is missing here.
for (SomeObject obj : list) {
reactiveRedisOperations.opsForHash().put(key, hashKey, obj).map(b -> obj); }
On the other side if i return the Mono result from similar code via a rest service response than it seems to save in Redis correctly, not sure why this is this way. Thanks