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 GETDEL command #68

Open
kelvinmwinuka opened this issue Jun 15, 2024 · 0 comments
Open

Implement GETDEL command #68

kelvinmwinuka opened this issue Jun 15, 2024 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@kelvinmwinuka
Copy link
Collaborator

kelvinmwinuka commented Jun 15, 2024

Implement the GETDEL command, which gets the current value at the specified key and then delete the key.
Reference: https://redis.io/docs/latest/commands/getdel/

Client-Server Spec:

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

Command: getdel
Module: constants.GenericModule
Categories: constants.WriteCategory, constants.FastCategory
Description: (GETDEL key) Get the value of key and delete the key. This command is similar to [GET](https://redis.io/docs/latest/commands/get/), except for the fact that it also deletes the key on success (if and only if the key's value type is a string).
Sync: true

Embedded Spec:

Command File: ./echovault/api_generic.go
Test File: ./echovault/api_generic_test.go

@kelvinmwinuka kelvinmwinuka added enhancement New feature or request good first issue Good for newcomers labels Jun 15, 2024
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
Projects
None yet
Development

No branches or pull requests

1 participant