[GH-ISSUE #639] [FEATURE REQUEST] need another way to set RedisClientOpt #313

Closed
opened 2026-03-02 05:20:24 +03:00 by kerem · 3 comments
Owner

Originally created by @lypro09539 on GitHub (Apr 6, 2023).
Original GitHub issue: https://github.com/hibiken/asynq/issues/639

Originally assigned to: @hibiken on GitHub.

Is your feature request related to a problem? Please describe.
because our redis is configured on apollo,neither host nor pwd is exposed to applications。Each application specify redis name through our own lib, and got a Redis Client instance (go-redis Redis Client)

Describe the solution you'd like
is there any way to use common redis client implementation to set redis backend instead of only RedisClientOpt ? thanks.

Originally created by @lypro09539 on GitHub (Apr 6, 2023). Original GitHub issue: https://github.com/hibiken/asynq/issues/639 Originally assigned to: @hibiken on GitHub. **Is your feature request related to a problem? Please describe.** because our redis is configured on apollo,neither host nor pwd is exposed to applications。Each application specify redis name through our own lib, and got a Redis Client instance (go-redis Redis Client) **Describe the solution you'd like** is there any way to use common redis client implementation to set redis backend instead of only RedisClientOpt ? thanks.
kerem 2026-03-02 05:20:24 +03:00
Author
Owner

@bfwbbrj commented on GitHub (Apr 6, 2023):

Can you share how you get your redis client? You should be able to implementRedisConnOpt to use custom client

<!-- gh-comment-id:1499089695 --> @bfwbbrj commented on GitHub (Apr 6, 2023): Can you share how you get your redis client? You should be able to implement`RedisConnOpt` to use custom client
Author
Owner

@lypro09539 commented on GitHub (Apr 7, 2023):

Can you share how you get your redis client? You should be able to implementRedisConnOpt to use custom client

sorry, my fault. After intstall asynq and read source code I realized I could.

<!-- gh-comment-id:1499905169 --> @lypro09539 commented on GitHub (Apr 7, 2023): > Can you share how you get your redis client? You should be able to implement`RedisConnOpt` to use custom client sorry, my fault. After intstall asynq and read source code I realized I could.
Author
Owner

@xuyang2 commented on GitHub (Apr 10, 2023):

@lypro09539
If you want to dynamically close and rebuild redis.Client, mind https://github.com/hibiken/asynq/issues/639

<!-- gh-comment-id:1501586932 --> @xuyang2 commented on GitHub (Apr 10, 2023): @lypro09539 If you want to dynamically close and rebuild `redis.Client`, mind https://github.com/hibiken/asynq/issues/639
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/asynq#313
No description provided.