This commit is contained in:
tanglong 2025-07-29 16:44:30 +08:00
parent 75e9ca107e
commit 773a169ab6

View File

@ -90,7 +90,7 @@ namespace YD_AllHeartRates.Api.Mqtt
//List<S_Device> devices;
var studentListCacheKey = $"{AppSettings.StudentListCacheKey}_{AppSettings.SchoolCode}";
var deviceListCacheKey = $"{AppSettings.DeviceListCacheKey}_{AppSettings.SchoolCode}";
//var deviceListCacheKey = $"{AppSettings.DeviceListCacheKey}_{AppSettings.SchoolCode}";
studentList = _caching.Get<List<StudentDto>>(studentListCacheKey);
//devices = _caching.Get<List<S_Device>>(deviceListCacheKey);
@ -257,8 +257,8 @@ namespace YD_AllHeartRates.Api.Mqtt
totalData.QuantityOfElectricity = jumpData.QuantityOfElectricity;
totalData.ScoreTime = jumpData.ScoreTime;
_caching.AddObject(jumpKey, totalData, 600);
_caching.AddObject(rawKey, jumpData, 60);
_caching.AddObject(jumpKey, totalData, 60);
_caching.AddObject(rawKey, jumpData, 600);
}
}
}