Code Interview 1 - Redis Cache
import asyncio import aioredis import pickle
# Async cache decorator using Redis
redis = aioredis.from_url("redis://localhost")
def cache(ttl=60):
def deco(func):
async def wrapper(*args, **kwargs): key = func.name + ":" + str(args) da...
gomdoricake.hashnode.dev2 min read