Click or drag to resize
RedisHashesHSETNX Method (String, String, Byte)
设置一个元素项,如果元素项不存在则成功,否则设置失败

Namespace: Adf
Assembly: Adf (in Adf.dll) Version: 4.1.5549.27750
Syntax
public int HSETNX(
	string key,
	string field,
	byte[] value
)

Parameters

key
Type: SystemString

[Missing <param name="key"/> documentation for "M:Adf.RedisHashes.HSETNX(System.String,System.String,System.Byte[])"]

field
Type: SystemString

[Missing <param name="field"/> documentation for "M:Adf.RedisHashes.HSETNX(System.String,System.String,System.Byte[])"]

value
Type: SystemByte

[Missing <param name="value"/> documentation for "M:Adf.RedisHashes.HSETNX(System.String,System.String,System.Byte[])"]

Return Value

Type: Int32
1 if field is a new field in the hash and value was set. 0 if field already exists in the hash and the value was updated.
See Also