mirror of
https://github.com/hibiken/asynq.git
synced 2026-04-26 15:35:55 +03:00
[GH-ISSUE #320] [FEATURE REQUEST] Add func NewServerWithClient() and NewWithClient()? #136
Labels
No labels
CLI
bug
designing
documentation
duplicate
enhancement
good first issue
good first issue
help wanted
idea
invalid
investigate
needs-more-info
performance
pr-welcome
pull-request
question
wontfix
work in progress
work in progress
work-around-available
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/asynq#136
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ryan961 on GitHub (Aug 31, 2021).
Original GitHub issue: https://github.com/hibiken/asynq/issues/320
Originally assigned to: @hibiken on GitHub.
@hibiken commented on GitHub (Aug 31, 2021):
@Ryalu thank you for opening a feature request.
I intentionally didn't add this option because I don't want
asynqpackage API to be dependent on a specificgo-redis/redispackage API. For example, if theNewClientfunction takesgithub.com/go-redis/redis/v7.UniversalClientthen we would need to bump our major version if we want to update togithub.com/go-redis/redis/v8.UniversalClient. Or we could potentially use other redis client library and I don't want to make a major version bump because of that.In short, I believe the fact that we are using
go-redis/redispackage is an internal implementation detail that shouldn't be exposed in our API.Why do you want this as a feature? Is our
RedisConnOptmissing some field to tune redis client behavior? If so, we can consider adding more options there.@ryan961 commented on GitHub (Aug 31, 2021):
Thanks for replying, I know, I just want to unify my configuration file. 👍
@hibiken commented on GitHub (Aug 31, 2021):
@Ryalu As discussed in #321 , you could implement your own type that satisfies
asynq.RedisConnOptinterface so that you have full control/access over the redis client.Let me know if that works!
@hibiken commented on GitHub (Sep 7, 2021):
Closing this; @Ryalu feel free to reopen if you have any follow up questions!