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 way compose_key method has been implemented. https://github.com/youknowone/ring/blob/0.7.3/ring/func/base.py#L648
Is there a way to specify the key_refactor method during runtime without re-implementing create_key_builder locally?
I am using
ring.redis==0.7.3for 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_refactormethod during runtime because of the waycompose_keymethod has been implemented. https://github.com/youknowone/ring/blob/0.7.3/ring/func/base.py#L648Is there a way to specify the
key_refactormethod during runtime without re-implementingcreate_key_builderlocally?