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 KEYS command #56

Open
kelvinmwinuka opened this issue Jun 15, 2024 · 1 comment
Open

Implement KEYS command #56

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

Comments

@kelvinmwinuka
Copy link
Collaborator

kelvinmwinuka commented Jun 15, 2024

Implement the KEYS command, which returns all the keys that match the provided pattern.
Reference: https://redis.io/docs/latest/commands/keys/

Client-Server Spec:

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

Command: keys
Module: constants.GenericModule
Categories: constants.KeyspaceCategory, constants.ReadCategory, constants.SlowCategory, constants.DangerousCategory
Description: (KEYS pattern) Returns an array of keys that match the provided glob pattern.
Sync: false

Embedded Spec:

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

NOTE: You may have to edit the HandlerFuncParams type to include a function that returns all matching keys.

@kelvinmwinuka kelvinmwinuka added enhancement New feature or request good first issue Good for newcomers labels Jun 15, 2024
@tristin-codes
Copy link

I have started implementing this here: tristin-codes@94a946e

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

2 participants