Single atomic method for two set() and expireAt() calls? #2606
-
Hi, I know the atomic setex() method can be used to set a key with a TTL value like this:
But I could not find the equivalent method for setting a expiration timestamp instead of TTL value. I currently have following actions, but looking for an atomic method like setex():
Does it exist and I'm missing it or? Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Answered by
sazzad16
Jul 28, 2021
Replies: 1 comment 3 replies
-
Use SET command with EXAT argument.
|
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
babakeghbali
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use SET command with EXAT argument.