Replies: 1 comment 4 replies
-
Hey @Sinbol , Have you tried to call async.set(key_name, String.valueOf(val+1000)).get(); |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I tried to write a simple demo using the async way to call the set command and found that when the program ended, Redis did not actually receive the command. I am curious why the connection closure does not guarantee the complete execution of the command.
i dont want to handle the response, so the simple code like bellow
Additionally, maybe helpful that if sleep() for some time before return, it can help sometime.
I guess that the client closed too quickly before sending the command, but is there any interface to ensure a safe shutdown? i also tried the async.flushCommands() before shutdown, but not help... kindly help
Beta Was this translation helpful? Give feedback.
All reactions