redis获取数采数据
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user