Is func 'SetNX' atomic ? #1974
Unanswered
Wang-Yanping1996
asked this question in
Q&A
Replies: 1 comment
-
All Redis commands are atomic. If you need to execute several command atomically, you can use a pipeline. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is func 'SetNX' atomic ?
I think that I cannot use
SETNX
andEXPIRE
at the same time, butSET key value ex ... nx
is OK. So theSET key value ex ... nx
is atomic ? The origin code use this format, so the functionSETNX
is atomic ?I'm not familiar with this, so can you help me ?
Thanks for a lot !
Beta Was this translation helpful? Give feedback.
All reactions