Skip to content
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

Add cache key prefix #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

andre-dasilva
Copy link
Contributor

This is just a nice to have feature 😄

I think all the translation keys should have a namespace (e.g. "translator:")

I took the idea from: https://django-constance.readthedocs.io/en/latest/backends.html#constance-redis-prefix
And its also what redis recommend: https://redis.com/blog/5-key-takeaways-for-developing-with-redis/

we could even go as far and make the "language" part of the cache key its own namespace

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.

1 participant