RedisClientSetNX Method (String, Byte) |
设置一个值,当键已存在时则忽略
Namespace: AdfAssembly: Adf (in Adf.dll) Version: 4.1.5549.27750
Syntax public bool SetNX(
string key,
byte[] value
)
Public Function SetNX (
key As String,
value As Byte()
) As Boolean
public:
bool SetNX(
String^ key,
array<unsigned char>^ value
)
member SetNX :
key : string *
value : byte[] -> bool
Parameters
- key
- Type: SystemString
[Missing <param name="key"/> documentation for "M:Adf.RedisClient.SetNX(System.String,System.Byte[])"]
- value
- Type: SystemByte
[Missing <param name="value"/> documentation for "M:Adf.RedisClient.SetNX(System.String,System.Byte[])"]
Return Value
Type:
Boolean[Missing <returns> documentation for "M:Adf.RedisClient.SetNX(System.String,System.Byte[])"]
See Also