We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb4e9cf commit 6b515adCopy full SHA for 6b515ad
app.py
@@ -84,7 +84,7 @@ async def read_top_stocks(cache: RedisBackend = Depends(get_cache)):
84
stock = " ".join(top_stocks)
85
stock_info = get_top_stocks(stock)
86
87
- await cache.set(cache_key, json.dumps(stock_info), 5)
+ await cache.set(cache_key, json.dumps(stock_info), 10)
88
return stock_info
89
90
@app.get("/health") # Changed to GET since it's retrieving status
requirements.txt
@@ -12,7 +12,7 @@ dnspython==2.7.0
12
docstring_parser==0.16
13
duckduckgo_search==7.3.2
14
email_validator==2.2.0
15
-fastapi==0.115.8
+fastapi
16
fastapi-cache2==0.2.2
17
fastapi-cli==0.0.7
18
Flask==3.1.0
0 commit comments