Ver código fonte

调整key命名

datasub12_fetal_heart_rate_0
H Vs 3 meses atrás
pai
commit
9195a15063
1 arquivos alterados com 2 adições e 2 exclusões
  1. +2
    -2
      HealthMonitor.Service/Cache/DeviceCacheManager.cs

+ 2
- 2
HealthMonitor.Service/Cache/DeviceCacheManager.cs Ver arquivo

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


Carregando…
Cancelar
Salvar