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

Implement HEXPIREAT command #114

Open
kelvinmwinuka opened this issue Sep 11, 2024 · 0 comments
Open

Implement HEXPIREAT command #114

kelvinmwinuka opened this issue Sep 11, 2024 · 0 comments
Labels
documentation Improvements or additions to documentation enhancement New feature or request good first issue Good for newcomers hacktoberfest Tasks open for hacktoberfest contributors

Comments

@kelvinmwinuka
Copy link
Collaborator

kelvinmwinuka commented Sep 11, 2024

Sets the exact expiration time from now, in seconds, of a field in a hash.
Reference: https://redis.io/docs/latest/commands/hexpireat/

Client-Server Spec:

Command File: ./internal/modules/hash/commands.go
Test File: ./internal/modules/hash/commands_test.go

Command: hexpireat
Module: constants.HashModule
Categories: contants.HashCategory, constants.WriteCategory, constants.FastCategory
Description: (HEXPIREAT key unix-time-seconds [NX | XX | GT | LT] FIELDS numfields field [field ...]) Sets the exact expiration time from now of a field in a hash.
Sync: true

NOTE: You may need to change the internal representation of the hash to hold a more complex data type that includes the field's value and expiry time instead of just the value. If the representation is already changed from a previous implementation, then use the current implementation.

Embedded Spec:

Command File: ./echovault/api_hash.go
Test File: ./echovault/api_hash_test.go

Documentation

Add documentation to ./docs/docs/commands/hash/HEXPIREAT.mdx

@kelvinmwinuka kelvinmwinuka added documentation Improvements or additions to documentation enhancement New feature or request good first issue Good for newcomers labels Sep 11, 2024
@kelvinmwinuka kelvinmwinuka added the hacktoberfest Tasks open for hacktoberfest contributors label Sep 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request good first issue Good for newcomers hacktoberfest Tasks open for hacktoberfest contributors
Projects
None yet
Development

No branches or pull requests

1 participant