点击或拖拽改变大小

RedisClientExistsHashKey 方法

查看哈希表 key 中,给定域 field 是否存在。如果哈希表含有给定域,返回 1 。 如果哈希表不含有给定域,或 key 不存在,返回 0 。

命名空间:  HslCommunication.Enthernet.Redis
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:11.8.2.0 (11.8.2.0)
语法
public OperateResult<int> ExistsHashKey(
	string key,
	string field
)

参数

key
类型:SystemString
关键字
field
类型:SystemString

返回值

类型:OperateResultInt32
如果哈希表含有给定域,返回 1 。如果哈希表不含有给定域,或 key 不存在,返回 0 。
参见