|
@@ -86,7 +86,7 @@ namespace HealthMonitor.Service.Cache |
|
|
{ |
|
|
{ |
|
|
try |
|
|
try |
|
|
{ |
|
|
{ |
|
|
var key = $"PregnancyHeartRateFreqStatus_{sn}"; |
|
|
|
|
|
|
|
|
var key = $"PhrFreqStatus_{sn}"; |
|
|
var status = await RedisHelper.GetAsync(key).ConfigureAwait(false); |
|
|
var status = await RedisHelper.GetAsync(key).ConfigureAwait(false); |
|
|
if (string.IsNullOrEmpty(status)) return null; |
|
|
if (string.IsNullOrEmpty(status)) return null; |
|
|
return JsonConvert.DeserializeObject<PregnancyHeartRateModel>(status); |
|
|
return JsonConvert.DeserializeObject<PregnancyHeartRateModel>(status); |
|
@@ -102,7 +102,7 @@ namespace HealthMonitor.Service.Cache |
|
|
{ |
|
|
{ |
|
|
try |
|
|
try |
|
|
{ |
|
|
{ |
|
|
var key = $"PregnancyHeartRateFreqStatus_{sn}"; |
|
|
|
|
|
|
|
|
var key = $"PhrFreqStatus_{sn}"; |
|
|
var data=JsonConvert.SerializeObject(status); |
|
|
var data=JsonConvert.SerializeObject(status); |
|
|
await RedisHelper.SetAsync(key, data, expire).ConfigureAwait(false); |
|
|
await RedisHelper.SetAsync(key, data, expire).ConfigureAwait(false); |
|
|
} |
|
|
} |
|
|