Browse Source

fix 删除无用的缓存

dev v0.0.12
lucas 2 months ago
parent
commit
3cb6b087df
  1. 2
      configHelper.go

2
configHelper.go

@ -516,7 +516,6 @@ func (the *ConfigHelper) GetIotaMeta(deviceId string) (common_models.DeviceMeta,
k := fmt.Sprintf("%s:%s", redisKey.Iota_meta, deviceId) k := fmt.Sprintf("%s:%s", redisKey.Iota_meta, deviceId)
//var deviceMeta common_models.DeviceMeta //var deviceMeta common_models.DeviceMeta
err = the.redisHelper.GetObj(k, &result) err = the.redisHelper.GetObj(k, &result)
DeviceMetaCache[deviceId] = result
} }
return result, err return result, err
} }
@ -529,7 +528,6 @@ func (the *ConfigHelper) GetIotaDevice(deviceId string) (common_models.IotaDevic
k := fmt.Sprintf("%s:%s", redisKey.Iota_device, deviceId) k := fmt.Sprintf("%s:%s", redisKey.Iota_device, deviceId)
err = the.redisHelper.GetObj(k, &result) err = the.redisHelper.GetObj(k, &result)
IotaDeviceCache[deviceId] = result
} }
return result, err return result, err
} }

Loading…
Cancel
Save