Browse Source

调整key命名

datasub12_fetal_heart_rate_0
H Vs 3 months ago
parent
commit
9195a15063
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      HealthMonitor.Service/Cache/DeviceCacheManager.cs

+ 2
- 2
HealthMonitor.Service/Cache/DeviceCacheManager.cs View File

@@ -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);
} }


Loading…
Cancel
Save