RedisHashesHSET Method (String, String, Byte) |
设置一个元素项
Namespace: AdfAssembly: Adf (in Adf.dll) Version: 4.1.5549.27750
Syntax public int HSET(
string key,
string field,
byte[] value
)
Public Function HSET (
key As String,
field As String,
value As Byte()
) As Integer
public:
int HSET(
String^ key,
String^ field,
array<unsigned char>^ value
)
member HSET :
key : string *
field : string *
value : byte[] -> int
Parameters
- key
- Type: SystemString
[Missing <param name="key"/> documentation for "M:Adf.RedisHashes.HSET(System.String,System.String,System.Byte[])"]
- field
- Type: SystemString
[Missing <param name="field"/> documentation for "M:Adf.RedisHashes.HSET(System.String,System.String,System.Byte[])"]
- value
- Type: SystemByte
[Missing <param name="value"/> documentation for "M:Adf.RedisHashes.HSET(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