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 Redis server #16

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

Implement Redis server #16

wants to merge 3 commits into from

Conversation

nemati21
Copy link

No description provided.

@nemati21 nemati21 added the enhancement New feature or request label Dec 25, 2022
@nemati21 nemati21 requested a review from anvari1313 December 25, 2022 07:56
@nemati21 nemati21 self-assigned this Dec 25, 2022
redis/handler.go Outdated
}

p.mux.RLock()
value, found := p.items[string(cmd.Args[1])]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's no reason to implement the Redis logic. It's just a proxy server. Please remove them.


h := NewProxy()

errSig := make(chan bool)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should implement a graceful shutdown mechanism.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants