Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
@ring.aiodict(storage)
@classmethod
@asyncio.coroutine
def cmethod(cls, a, b):
return base + a * 200 + b
@ring.aiodict(storage)
@asyncio.coroutine
def method(self, a, b):
return base + a * 100 + b
@ring.aiodict(cache)
@asyncio.coroutine
def f1(a, b):
return a * 100 + b
@ring.aiodict(cache, expire=1)
@asyncio.coroutine
def f2(a, b):
return a * 100 + b
def storage_dict():
storage = StorageDict()
storage.ring = ring.aiodict
return storage