Explorar el Código

调整key命名

datasub12_fetal_heart_rate_0
H Vs hace 3 meses
padre
commit
9195a15063
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. +2
    -2
      HealthMonitor.Service/Cache/DeviceCacheManager.cs

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

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


Cargando…
Cancelar
Guardar