[PR #1061] feat: Add Redis key prefix support for environment namespacing #1002

Open
opened 2026-03-02 06:28:47 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hibiken/asynq/pull/1061
Author: @ryukunt
Created: 7/14/2025
Status: 🔄 Open

Base: masterHead: master


📝 Commits (7)

  • 7febc1b feat: Add Redis key prefix support for environment namespacing
  • 090b44d Merge pull request #1 from ryukunt/feature/redis-key-prefix
  • f0b004a Merge branch 'master' into master
  • c1b339b reslove conflict & comment
  • b5975cb reslove conflict & comment
  • d19b05f reslove conflict & comment
  • 86e5edb reslove conflict & comment

📊 Changes

7 files changed (+336 additions, -18 deletions)

View changed files

📝 asynq.go (+27 -0)
📝 internal/base/base.go (+57 -12)
key_prefix_test.go (+234 -0)
📝 tools/asynq/cmd/root.go (+9 -0)
📝 tools/go.mod (+1 -1)
📝 tools/go.sum (+1 -1)
📝 tools/metrics_exporter/main.go (+7 -4)

📄 Description

Hi author, thanks for the awesome project!
I’ve been using it and would like to contribute this feature as well.
This allows different environments or services (prod, staging, dev) to use the same Redis instance without key collisions by namespacing all Asynq keys with a custom prefix.
Thank for your review


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/hibiken/asynq/pull/1061 **Author:** [@ryukunt](https://github.com/ryukunt) **Created:** 7/14/2025 **Status:** 🔄 Open **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (7) - [`7febc1b`](https://github.com/hibiken/asynq/commit/7febc1bb70b50a88e8cba7297686b9f2d41038df) feat: Add Redis key prefix support for environment namespacing - [`090b44d`](https://github.com/hibiken/asynq/commit/090b44d5125a3eae4ed239306e7377f8b3c1022a) Merge pull request #1 from ryukunt/feature/redis-key-prefix - [`f0b004a`](https://github.com/hibiken/asynq/commit/f0b004a8fb664f0d591fdade81fd603b436f6d86) Merge branch 'master' into master - [`c1b339b`](https://github.com/hibiken/asynq/commit/c1b339be975b3dabe916f2315178c881371a8b6d) reslove conflict & comment - [`b5975cb`](https://github.com/hibiken/asynq/commit/b5975cbd409cce5cb8e5b7e185f3efab633ae0cd) reslove conflict & comment - [`d19b05f`](https://github.com/hibiken/asynq/commit/d19b05fa35b176b1f1bd507614df095db1317b77) reslove conflict & comment - [`86e5edb`](https://github.com/hibiken/asynq/commit/86e5edb14cbb126c1ab034b6d88f20f33cc65c71) reslove conflict & comment ### 📊 Changes **7 files changed** (+336 additions, -18 deletions) <details> <summary>View changed files</summary> 📝 `asynq.go` (+27 -0) 📝 `internal/base/base.go` (+57 -12) ➕ `key_prefix_test.go` (+234 -0) 📝 `tools/asynq/cmd/root.go` (+9 -0) 📝 `tools/go.mod` (+1 -1) 📝 `tools/go.sum` (+1 -1) 📝 `tools/metrics_exporter/main.go` (+7 -4) </details> ### 📄 Description Hi author, thanks for the awesome project! I’ve been using it and would like to contribute this feature as well. This allows different environments or services (prod, staging, dev) to use the same Redis instance without key collisions by namespacing all Asynq keys with a custom prefix. Thank for your review --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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#1002
No description provided.