redis获取数采数据

This commit is contained in:
qianjiawei
2023-11-03 09:53:58 +08:00
parent a01786aef8
commit 0bfc23ac4c
3 changed files with 74 additions and 0 deletions

View File

@@ -224,4 +224,12 @@ public class RedisCache : ICache, ISingleton
long second = RedisHelper.PTtl(key);
return DateTime.Now.AddMilliseconds(second);
}
public string GetHash(string key, string field)
{
return RedisHelper.HGet(key, field);
}
public bool HashExist(string key, string field)
{
return RedisHelper.HExists(key, field);
}
}