A basic python memoizer that supports class methods and stand alone functions.
from redis_cache import cache
@cache(expires_seconds=300)
def test1(a):
return 5
test1()
class Test:
@cache(expires_seconds=300)
def caclulcate_something(self, a):
return 5
test = Test()
test.caclulcate_something()
test1.refresh_cache('hello')