You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, sorry if this questions is a bit broad, but I'm looking for a way to not make ring be specifically tied to one precise backend, after the functions have been evaluated.
For example, I often need to dynamically switch from a dev environment to a staging or prod environment, and it would really be problematic if the cache was sharing values from all of those different environment.
One solution I have found is just to disable ring for non prod environments with my own decorator.
If you are using python3.7+, passing ContextVar is also possible to switch only backend storage, but it doesn't help when you don't want to run function.
Hello, sorry if this questions is a bit broad, but I'm looking for a way to not make ring be specifically tied to one precise backend, after the functions have been evaluated.
For example, I often need to dynamically switch from a dev environment to a staging or prod environment, and it would really be problematic if the cache was sharing values from all of those different environment.
One solution I have found is just to disable ring for non prod environments with my own decorator.
but this is far from perfect.
I don't know if there would be a way to get the client dynamically inside ring via a function call...
Sorry if this seems a bit noobish.
The text was updated successfully, but these errors were encountered: