Click or drag to resize
RedisClientSetNX Method (String, String)
设置一个值,当键已存在时则忽略

Namespace: Adf
Assembly: Adf (in Adf.dll) Version: 4.1.5549.27750
Syntax
public bool SetNX(
	string key,
	string value
)

Parameters

key
Type: SystemString

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

value
Type: SystemString

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

Return Value

Type: Boolean

[Missing <returns> documentation for "M:Adf.RedisClient.SetNX(System.String,System.String)"]

See Also