Skip to content
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

HTTL: access expiration time of hashes #3026

Closed
Le0Developer opened this issue May 8, 2024 · 2 comments
Closed

HTTL: access expiration time of hashes #3026

Le0Developer opened this issue May 8, 2024 · 2 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@Le0Developer
Copy link

Le0Developer commented May 8, 2024

Is your feature request related to a problem? Please describe.
I'm trying to access the expiration time of a hash created using HSETEX, but no such command exists.

Describe the solution you'd like
HTTL key field which behaves like TTL key but for hashes.

Describe alternatives you've considered
Tracking expiration time in an extra hash, but that just wastes storage for redundant information that already exists.

Related
#687 which originally added HSETEX

@romange
Copy link
Collaborator

romange commented May 11, 2024

Seems we have the undocumented FIELDTTL command that does exactly that.
Opened #3026 for that

@Le0Developer
Copy link
Author

Closing as dragonflydb/documentation#236 was merged.
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants