From 7968d94c006c4deac850dbfa5cff2ca02e5ba6b0 Mon Sep 17 00:00:00 2001 From: MuslemRahimi Date: Wed, 8 Jan 2025 16:03:47 +0100 Subject: [PATCH] reduce cache time --- app/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index 186d709..b533da8 100755 --- a/app/main.py +++ b/app/main.py @@ -4192,7 +4192,7 @@ async def get_market_flow(api_key: str = Security(get_api_key)): compressed_data = gzip.compress(data) redis_client.set(cache_key, compressed_data) - redis_client.expire(cache_key,5*60) + redis_client.expire(cache_key,2*60) return StreamingResponse( io.BytesIO(compressed_data),