diff --git a/YD_AllHeartRates.Api/Mqtt/MqttBackgroundService.cs b/YD_AllHeartRates.Api/Mqtt/MqttBackgroundService.cs index 5e3135a..b766da9 100644 --- a/YD_AllHeartRates.Api/Mqtt/MqttBackgroundService.cs +++ b/YD_AllHeartRates.Api/Mqtt/MqttBackgroundService.cs @@ -90,7 +90,7 @@ namespace YD_AllHeartRates.Api.Mqtt //List devices; var studentListCacheKey = $"{AppSettings.StudentListCacheKey}_{AppSettings.SchoolCode}"; - var deviceListCacheKey = $"{AppSettings.DeviceListCacheKey}_{AppSettings.SchoolCode}"; + //var deviceListCacheKey = $"{AppSettings.DeviceListCacheKey}_{AppSettings.SchoolCode}"; studentList = _caching.Get>(studentListCacheKey); //devices = _caching.Get>(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); } } }