Refine
This commit is contained in:
2
main.py
2
main.py
@@ -2245,7 +2245,7 @@ async def fastapi_query_scada_data_by_device_id_and_date(ids: str, querydate: st
|
||||
async def fastapi_query_all_scada_records_by_date(querydate: str):
|
||||
# 缓存查询结果提高性能
|
||||
global redis_client
|
||||
cache_key = f"{querydate}"
|
||||
cache_key = f"queryallscadarecordsbydate_{querydate}"
|
||||
data = redis_client.get(cache_key)
|
||||
if data:
|
||||
# 使用自定义的反序列化函数
|
||||
|
||||
Reference in New Issue
Block a user