We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I am using ring.redis==0.7.3 for caching function returns and I need to prefix the cache key based on the environment that code is being deployed.
ring.redis==0.7.3
Currently it is not possible to set the key_refactor method during runtime because of the way compose_key method has been implemented. https://github.com/youknowone/ring/blob/0.7.3/ring/func/base.py#L648
key_refactor
compose_key
Is there a way to specify the key_refactor method during runtime without re-implementing create_key_builder locally?
create_key_builder
The text was updated successfully, but these errors were encountered:
I can't see a good solution for now. I think refactoring create_key_builder to class would be the one of the future.
Sorry, something went wrong.
Instead of overriding the key_refactor method, I added the custom prefix to _key_prefix value.
_key_prefix
In case someone else is looking for this, the gist can be found here
let me keep this issue open to make them customizable. I think this is lack of feature.
No branches or pull requests
I am using
ring.redis==0.7.3
for caching function returns and I need to prefix the cache key based on the environment that code is being deployed.Currently it is not possible to set the
key_refactor
method during runtime because of the waycompose_key
method has been implemented. https://github.com/youknowone/ring/blob/0.7.3/ring/func/base.py#L648Is there a way to specify the
key_refactor
method during runtime without re-implementingcreate_key_builder
locally?The text was updated successfully, but these errors were encountered: