bugfixing cache time
This commit is contained in:
parent
b406a53f68
commit
af1f13e57f
@ -4104,7 +4104,7 @@ async def get_insider_tracker(api_key: str = Security(get_api_key)):
|
|||||||
compressed_data = gzip.compress(data)
|
compressed_data = gzip.compress(data)
|
||||||
|
|
||||||
redis_client.set(cache_key, compressed_data)
|
redis_client.set(cache_key, compressed_data)
|
||||||
redis_client.expire(cache_key,3600*3600)
|
redis_client.expire(cache_key,5*60)
|
||||||
|
|
||||||
return StreamingResponse(
|
return StreamingResponse(
|
||||||
io.BytesIO(compressed_data),
|
io.BytesIO(compressed_data),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user