RedisReactiveCommands<String, String> reactiveCommands = connection.reactive();
Mono<String> keyValue = reactiveCommands.get("auth");
keyValue.map((val) -> {
// my return value handling code here
// which should handle the case where key is not found
}
)
If the the key 'auth' does not exist, the Mono directly calls OnComplete without calling OnNext with a null value. However I wish to handle the key does not exist case as part of the business logic.
How can I do that? According to the documentation, it should call OnNext with a Null value?