Command | Syntax | Description |
EXHSET | EXHSET key field value [EX time] [EXAT time] [PX time] [PXAT time] [NX | XX] [VER | ABS version] [KEEPTTL]
| Adds a field to a TairHash key. If the key does not exist, the key is created. If the field already exists, this command overwrites the current value of the field. |
EXHGET | EXHGET key field
| Retrieves the value of a field from a TairHash key. If the key or field does not exist, nil is returned. |
EXHMSET | EXHMSET key field value [field value ...]
| Adds multiple fields to a TairHash key. If the key does not exist, the key is created. If these fields already exist in the key, this command overwrites the values of these fields. |
EXHPEXPIREAT | EXHPEXPIREAT key field milliseconds-timestamp [VER | ABS version]
| Specifies the absolute expiration time of a field in a TairHash key. Unit: milliseconds. |
EXHPEXPIRE | EXHPEXPIRE key field milliseconds [VER | ABS version]
| Specifies the relative expiration time of a field in a TairHash key. Unit: milliseconds. |
EXHEXPIREAT | EXHEXPIREAT key field timestamp [VER | ABS version]
| Specifies the absolute expiration time of a field in a TairHash key. Unit: seconds. |
EXHEXPIRE | EXHEXPIRE key field seconds [VER | ABS version]
| Specifies the relative expiration time of a field in a TairHash key. Unit: seconds. |
EXHPTTL | EXHPTTL key field
| Queries the TTL of a field in a TairHash key. Unit: milliseconds. |
EXHTTL | EXHTTL key field
| Queries the TTL of a field in a TairHash key. Unit: seconds. |
EXHVER | EXHVER key field
| Queries the current version number of a field in a TairHash key. |
EXHSETVER | EXHSETVER key field version
| Specifies the version number of a field in a TairHash key. |
EXHINCRBY | EXHINCRBY key field num [EX time] [EXAT time] [PX time] [PXAT time] [VER | ABS version] [MIN minval] [MAX maxval] [KEEPTTL]
| Increases the value of a field in a TairHash key by the num value. The num value must be an integer. If the key does not exist, the key is created. If the field does not exist, this command adds the field and sets the value of the field to 0 before increasing the value of the field. Note To add a field that does not expire, you can run this command to add the field without specifying an expiration time. |
EXHINCRBYFLOAT | EXHINCRBYFLOAT key field num [EX time] [EXAT time] [PX time] [PXAT time] [VER | ABS version] [MIN minval] [MAX maxval] [KEEPTTL]
| Increases the value of a field in a TairHash key by the num value. The num value must be a floating-point number. If the key does not exist, the key is created. If the field does not exist, this command adds the field and sets the value of the field to 0 before increasing the value of the field. Note To add a field that does not expire, you can run this command to add the field without specifying an expiration time. |
EXHGETWITHVER | EXHGETWITHVER key field
| Retrieves the value and version number of a field from a TairHash key. If the key or field does not exist, nil is returned. |
EXHMGET | EXHMGET key field [field ...]
| Retrieves multiple field values from a TairHash key in each query. If the key does not exist or if the fields do not exist, nil is returned. |
EXHMGETWITHVER | EXHMGETWITHVER key field [field ...]
| Retrieves the values and version numbers of multiple fields from a TairHash key in each query. |
EXHLEN | EXHLEN key [NOEXP]
| Retrieves the number of fields in a TairHash key. The output may include the number of expired fields that are not deleted because this command does not trigger a passive eviction of or filter out expired fields. If you want to retrieve only the number of fields that have not expired, you can set the NOEXP parameter in your command. |
EXHEXISTS | EXHEXISTS key field
| Checks whether a field exists in a TairHash key. |
EXHSTRLEN | EXHSTRLEN key field
| Retrieves the length of a field value from a TairHash key. |
EXHKEYS | EXHKEYS key
| Retrieves all fields from a TairHash key. |
EXHVALS | EXHVALS key
| Retrieves all field values from a TairHash key. |
EXHGETALL | EXHGETALL key
| Retrieves all fields and their values from a TairHash key. |
EXHSCAN | EXHSCAN key op subkey [MATCH pattern] [COUNT count]
| Scans a TairHash key. Note This command is supported only for DRAM-based instances. |
EXHSCANUNORDER | EXHSCANUNORDER key cursor [MATCH pattern] [COUNT count]
| Scans a TairHash key. Note This command is supported only for persistent memory-optimized instances. |
EXHDEL | EXHDEL key field [field ...]
| Deletes a field from a TairHash key. If the key or field does not exist, a value of 0 is returned. If the field is deleted, a value of 1 is returned. |
DEL | DEL <key> [key ...]
| Deletes one or more TairHash keys. |