using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Monitor.LogService; using DataBase.Real.Redis; namespace Module.HMeter.ModBusTcp { /// /// 参数值发送到Redis /// internal class HumiMeterValueToRedis { /// /// Redis类实例化 /// private RedisBaseHelper _redis = new RedisBaseHelper(6); /// /// 存储温湿度参数信息 /// internal void StoredHumiParamValue(string eqmNo, MHumiParamResult value) { try { //保存到Redis //Task result = _redis.SetStrValueAsync(eqmNo+"HumiParamValue", value, TimeSpan.FromSeconds(300)); //Task result = _redis.SetStrValueAsync(eqmNo + "HumiParamValue", value); } catch (Exception ex) { ex.ToString(); return; } } } }