PieroValdebenito
Results
2
comments of
PieroValdebenito
Example ``` @app.get("/data") @cache(expire=3600) async def get_data_handler(request: Request): data = get_data_from_provider() if 'error' in data: # do not cache this response return JSONResponse(data, status_code=500) return { 'last_update': datetime.now().astimezone(), **data, }...