-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Open
Labels
Description
Describe the bug
Quarkus redis reactive client always returns null when using set
api with other arguments, also here.
for example this code
redisCommands.set("myKey", "myValue").awaitSuspending()
val request = Request.cmd(Command.SET)
.arg("myKey")
.arg("Value")
.arg("NX")
.arg("EX")
.arg(10)
val res1 = redisClient.redis.send(request).awaitSuspending()
val res2 = redisClient.redis.send(request).awaitSuspending()
println("res1: $res1, res2: $res2")
this code prints "OK" and null
while this code
var res1 = redisCommands.set("myKey", "myValue", SetArgs().nx().ex(10)).awaitSuspending()
var res2 = redisCommands.set("myKey", "myValue", SetArgs().nx().ex(10)).awaitSuspending()
println("res1: $res1, res2: $res2")
print null and null
Expected behavior
return true, false or return Ok and null like the database does.
Actual behavior
always returns null.
How to Reproduce?
No response
Output of uname -a
or ver
No response
Output of java -version
No response
Quarkus version or git rev
No response
Build tool (ie. output of mvnw --version
or gradlew --version
)
No response
Additional information
No response