瀏覽代碼

调整key命名

datasub12_fetal_heart_rate_0
H Vs 3 月之前
父節點
當前提交
9195a15063
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      HealthMonitor.Service/Cache/DeviceCacheManager.cs

+ 2
- 2
HealthMonitor.Service/Cache/DeviceCacheManager.cs 查看文件

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


Loading…
取消
儲存