Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
@memoize("1m", backend=self.backend_factory)
def fn(a, b, c):
return a + b + c
@memoize("30s", backend=self.backend_factory, get_now=get_now)
def fn(a, b, c):
c = state["counter"]
state["counter"] += 1
return c
@memoize("1m", whitelist=("b", "c"))
def fn(a, b, c):
return a + b + c
@memoize("1m", blacklist=("a", "c"))
def fn(a, b, c):
return a + b + c
@memoize("1m")
def fn(a, b, c):
c = state["counter"]
state["counter"] += 1
return c