Suor on 6.1
Suor on master
Up to 6.1 (compare)
Suor on master
Support Django 4.0 (compare)
Suor on master
Support Django 4.0 (compare)
@cached(timeout=30 * 60)
def _get_a(start, end):
a = some_function_call(start, end)
# Do cache empty results
if not a:
raise UncachedResult(a)
return a
def get_a(start, end):
try:
return _get_a(start, end)
except UncachedResult as e:
return e.result
_get_a()
?
_get_a.invalidate(start, end)
from cacheops import cache
in this case