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

support for hash field expiration #2716

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

atakavci
Copy link
Contributor

@atakavci atakavci commented May 20, 2024

Closes/Fixes #2715

this PR add support for a set of new commands related to expiration of individual members of hash

HashFieldExpire exposes the functionality of commands HPEXPIRE/HPEXPIREAT, for each specified field, it gets the value and sets the field's remaining time to live or expireation timestamp

HashFieldExpireTime exposes the functionality of command HPEXPIRETIME, for specified field, it gets the remaining time to live in milliseconds or expiration timestamp

HashFieldPersist exposes the functionality of command HPERSIST, for each specified field, it removes the expiration time

HashFieldTimeToLive expoes the functionality of command HPTTL, for specified field, it gets the remaining time to live in milliseconds or expiration timestamp

HEXPIRE, HPEXPIRE, HPEXPIREAT, HPEXPIREAT

hashfieldtest refactor

code format + unit tests refactored
HPEXPIRETIME, HPTTL, HPERSIST, HGETF, HSETF
@mgravell
Copy link
Collaborator

I don't want to merge this until these commands actually land in redis, but we can certainly take a look at the proposal in advance of that 👍

@atakavci
Copy link
Contributor Author

sure!! aim is to be prepared for the time this feature get ready in Redis.
please take a look when you have time and i d be happy to get your thoughts !!

@atakavci atakavci requested a review from mgravell May 23, 2024 08:31
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.

Support for Hash Field Expiration commands
2 participants