Skip to content

fix: Support for additional flags in expireat, pexpire and pexpireat commands #5007

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 30, 2025

Conversation

H4R5H1T-007
Copy link
Contributor

Fixes #4829

@@ -4,6 +4,9 @@

#include "server/generic_family.h"

#include "absl/strings/str_format.h"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you do not need to use a real clock for these tests. please take a look at AdvanceTime helper function. This is how we control time in our unit tests

@shusvr
Copy link

shusvr commented Apr 29, 2025

Original issue didn't mention HEXPIRE command, would it be possible to also expire options for it as well?

@romange
Copy link
Collaborator

romange commented Apr 29, 2025

Lets separate - it's too different things. if you need for HEXPIRE - please open an issue and explain your use-case.

@H4R5H1T-007
Copy link
Contributor Author

@romange I have replaced the actual clock with test clock in test cases and updated the PR. can you please review it once?

@romange
Copy link
Collaborator

romange commented Apr 30, 2025

Thank you @H4R5H1T-007 !

@romange romange merged commit 1082724 into dragonflydb:main Apr 30, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

EXPIREAT, PEXPIRE, and PEXPIREAT commands do not support optional flags [NX | XX | GT | LT]
3 participants