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

Feature: Add Hash Field Expiration Commands #2992

Open
ofekshenawa opened this issue May 12, 2024 · 0 comments · May be fixed by #2991
Open

Feature: Add Hash Field Expiration Commands #2992

ofekshenawa opened this issue May 12, 2024 · 0 comments · May be fixed by #2991

Comments

@ofekshenawa
Copy link
Collaborator

ofekshenawa commented May 12, 2024

Description

Introduce new commands that enable setting expiration times for individual fields within a hash. These commands will mirror existing Redis commands for setting key expiration but will be adapted for hash fields.

Proposed Commands

  1. HEXPIRE: Set TTL in seconds for specified fields within a hash.
  2. HPEXPIRE: Set TTL in milliseconds for specified fields within a hash.
  3. HEXPIREAT: Set expiration time as a UNIX timestamp in seconds for specified fields.
  4. HPEXPIREAT: Set expiration time as a UNIX timestamp in milliseconds for specified fields.
  5. HPERSIST: Remove expiration time from specified fields.
  6. HEXPIRETIME: Retrieve the expiration time in seconds for specified fields.
  7. HPEXPIRETIME: Retrieve the expiration time in milliseconds for specified fields.
  8. HTTL: Retrieve the TTL in seconds for specified fields.
  9. HPTTL: Retrieve the TTL in milliseconds for specified fields.

Request for Comments

Feedback on the implementations is highly welcome. Please share any concerns or additional features that should be considered.

@ofekshenawa ofekshenawa linked a pull request May 12, 2024 that will close this issue
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 a pull request may close this issue.

1 participant