-
-
Notifications
You must be signed in to change notification settings - Fork 209
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
redis rework base #994
redis rework base #994
Conversation
…y test environment)
Looks like a lot of the changes are from auto formatting. Did you use I did take a quick look at the Redis changes, and only thing that stuck out to me was storing the context in |
That was intended to be used later on. Had the idea to use a cancellation context which is stored inside the client and is used for all requests. Then we can implement a client close method that cancels the context so all requests are terminated gracefully. Sorry I'm not that familiar with context best practices. 😓 Is it better to use context.Background() at every call instead of doing it one time and storing it? |
I used |
Yeah that's what I'd do too.
In that case I think we can use rueidis' Client.Close. |
Thanks for the info. Regarding the fmt problem: I'll try to reproduce it to see what went wrong |
I currently can't reproduce it and also don't remember anything else I did at this commit. 🫤 I'll close this PR and implement the context changes on a new branch. |
I though about Redis integration, I think it would make sense to create a new branch fb-redis-integration for long running redis implementation tasks. And put all related PRs on this branch. We would have in this case main without CI buld errors and we can use this branch to integrate and test redis. Afterwards we can merge it into master. @kwitsch what do you think? |
Sounds good. |
Branch was created |
As most of the logic will change during implementation of #945 unit tests should be added afterwards.