Skip to content

add optional prefix to redis keys #74

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

Merged
merged 1 commit into from
Feb 25, 2025
Merged

Conversation

Graeme22
Copy link
Contributor

Description

Adds an optional prefix_str property to RedisAsyncResultBackend and its variants, as discussed in #73. This prefix allows for organizing keys into folders a la S3 in some Redis explorers like RedisInsight.

If the prefix is not provided (default), the behavior will not change at all, so this is backwards-compatible with existing DB results. Alternatively, we could set a default prefix string like "taskiq" which would not be backwards-compatible but would probably be more intuitive for users.

Related issues

Fixes #73.

@s3rius s3rius merged commit 090a00a into taskiq-python:main Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature Request: prefix string for result backend
2 participants