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

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

Parameters

key
Type: SystemString

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

field
Type: SystemString

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

value
Type: SystemString

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

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