This commit is contained in:
DingZQ
2025-03-19 22:21:53 +08:00
parent fb2f6aee80
commit e56e3e0078
2 changed files with 26 additions and 2 deletions

View File

@@ -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:
# 使用自定义的反序列化函数