mirror of
https://github.com/hibiken/asynq.git
synced 2026-04-26 07:25:56 +03:00
[GH-ISSUE #725] [FEATURE REQUEST] Support custom Redis cache key or prefix #1370
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#1370
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 @shuqingzai on GitHub (Aug 21, 2023).
Original GitHub issue: https://github.com/hibiken/asynq/issues/725
Originally assigned to: @hibiken on GitHub.
Is your feature request related to a problem? Please describe.
The asynq queue uses
asynqas the RedisKey prefix. If my redis has multiple asynq service tasks, all of them will be merged. I hope thatcustom keyorcustom key:asynqcan be used as a prefix to distinguish different ones ServeDescribe the solution you'd like
I hope that the configuration can customize the redis key prefix
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
@shuqingzai commented on GitHub (Aug 23, 2023):
Is it possible to make
asynqin the following func into config options, allowing users to customize, the default is:asynqgithub.com/hibiken/asynq@6b98c0bbae/internal/base/base.go (L107)github.com/hibiken/asynq@6b98c0bbae/internal/base/base.go (L181)github.com/hibiken/asynq@6b98c0bbae/internal/base/base.go (L186)github.com/hibiken/asynq@6b98c0bbae/internal/base/base.go (L191)github.com/hibiken/asynq@6b98c0bbae/internal/base/base.go (L196)@hibiken
@kamikazechaser commented on GitHub (Aug 24, 2023):
You could use different redis db id/number (namespace) and create multiple lightweight go-redis connection pools for each of them.
@hypnoglow commented on GitHub (Sep 7, 2023):
See: https://github.com/hibiken/asynq/pull/647
We ended up forking because we needed the prefix and Redis Cluster support in the CLI.
@sunxunkang commented on GitHub (Dec 20, 2023):
redis cluster mode can not select db
@hungtcs commented on GitHub (Jun 6, 2025):
+1.
This is a simple but very important function. I have also encountered the problem of namespace conflict at present.
@xpufx commented on GitHub (Jan 10, 2026):
They probably want asynqmon to run with zero friction. Feature would be nice to have indeed.