We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7ddf0a commit 106e288Copy full SHA for 106e288
cacheback/base.py
@@ -97,9 +97,12 @@ def __init__(self):
97
self.cache_alias = self.cache_alias or getattr(
98
settings, 'CACHEBACK_CACHE_ALIAS', DEFAULT_CACHE_ALIAS
99
)
100
- self.cache = caches[self.cache_alias]
101
self.task_options = self.task_options or {}
102
+ @property
103
+ def cache(self):
104
+ return caches[self.cache_alias]
105
+
106
def get_init_args(self):
107
"""
108
Return the args that need to be passed to __init__ when
0 commit comments