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

feat(server): Add HTTL command #3039

Closed
wants to merge 0 commits into from
Closed

Conversation

AyoubKaz07
Copy link

Access the expiration time of a hash created using HSETEX
Format is like this: HTTL key field which behaves like TTL key but for hashes.

Fixes #3026

@romange
Copy link
Collaborator

romange commented May 11, 2024

@AyoubKaz07 thank you for submitting this PR! When I was reviewing it, I noticed we have already implemented a similar, fieldttl command that applies for both hashmaps and sets. We forgot to document it and it totally slipped my mind. Seems that HTTL duplicates the logic around this command. I believe if we document fieldttl we won't need HTTL anymore.

@AyoubKaz07
Copy link
Author

Noticed it too, i thought there was a reason why it wasn't documented and required another HTTL command.

@AyoubKaz07
Copy link
Author

AyoubKaz07 commented May 11, 2024

@romange would like to take part and document fieldttl command, if you could point out where do i start

@romange
Copy link
Collaborator

romange commented May 11, 2024

Sure, our docs are here: https://github.com/dragonflydb/documentation

fieldttl should be under https://github.com/dragonflydb/documentation/tree/main/docs/command-reference/generic
but I would also mention it in setex and hsetex pages.

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.

HTTL: access expiration time of hashes
2 participants