是
This commit is contained in:
parent
75e9ca107e
commit
773a169ab6
@ -90,7 +90,7 @@ namespace YD_AllHeartRates.Api.Mqtt
|
|||||||
//List<S_Device> devices;
|
//List<S_Device> devices;
|
||||||
|
|
||||||
var studentListCacheKey = $"{AppSettings.StudentListCacheKey}_{AppSettings.SchoolCode}";
|
var studentListCacheKey = $"{AppSettings.StudentListCacheKey}_{AppSettings.SchoolCode}";
|
||||||
var deviceListCacheKey = $"{AppSettings.DeviceListCacheKey}_{AppSettings.SchoolCode}";
|
//var deviceListCacheKey = $"{AppSettings.DeviceListCacheKey}_{AppSettings.SchoolCode}";
|
||||||
|
|
||||||
studentList = _caching.Get<List<StudentDto>>(studentListCacheKey);
|
studentList = _caching.Get<List<StudentDto>>(studentListCacheKey);
|
||||||
//devices = _caching.Get<List<S_Device>>(deviceListCacheKey);
|
//devices = _caching.Get<List<S_Device>>(deviceListCacheKey);
|
||||||
@ -257,8 +257,8 @@ namespace YD_AllHeartRates.Api.Mqtt
|
|||||||
totalData.QuantityOfElectricity = jumpData.QuantityOfElectricity;
|
totalData.QuantityOfElectricity = jumpData.QuantityOfElectricity;
|
||||||
totalData.ScoreTime = jumpData.ScoreTime;
|
totalData.ScoreTime = jumpData.ScoreTime;
|
||||||
|
|
||||||
_caching.AddObject(jumpKey, totalData, 600);
|
_caching.AddObject(jumpKey, totalData, 60);
|
||||||
_caching.AddObject(rawKey, jumpData, 60);
|
_caching.AddObject(rawKey, jumpData, 600);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user