Closed
Description
Reactive multiGet
does not distinguish between null and empty string.
// redis: ReactiveStringRedisTemplate instance
redis.opsForValue().set("a", "").block()
val result = redis.opsForValue().multiGet(listOf("a", "nonexisting")).block()!!
println(result) // expects ["", null] but actually ["", ""]
The behavior is inconsistent with Reactive get
and blocking multiGet
which returns null on non-existing key.
(Tested on spring-data-redis 2.6.2)
LettuceReactiveStringCommands
needs to be changed. (but it would break existing usages)