Command | Syntax | Description |
EXZADD | EXZADD key [NX|XX] [CH] [INCR] score member [score member ...]
| Stores the specified element and its score in a TairZset key. You can specify multiple scores and elements. Note To implement multidimensional sorting, you can separate the scores of each dimension with number signs (#). Example: 111#222#121 . All elements of a key must have the same score format. |
EXZINCRBY | EXZINCRBY key increment member
| Increases the score of an element in a TairZset key. increment indicates the value that you want to add to the score. |
EXZSCORE | EXZSCORE key member
| Returns the score of an element in a TairZset key. If the key or element does not exist, a value of nil is returned. |
EXZRANGE | EXZRANGE key min max [WITHSCORES]
| Returns the elements of a TairZset key within the specified score range. |
EXZREVRANGE | EXZREVRANGE key min max [WITHSCORES]
| Returns the elements of a TairZset key within the specified score range. Elements are stored by score in descending order, and elements with the same score are sorted in reverse lexicographical order. Note This command is similar to EXZRANGE except that this command sorts the results in reverse. |
EXZRANGEBYSCORE | EXZRANGEBYSCORE key min max [WITHSCORES] [LIMIT offset count]
| Returns the elements of a TairZset key whose scores are greater than or equal to the min value and are less than or equal to the max value. The returned elements are sorted by score in ascending order, and elements with the same score are returned in lexicographical order. |
EXZREVRANGEBYSCORE | EXZREVRANGEBYSCORE key max min [WITHSCORES] [LIMIT offset count]
| Returns the elements of a TairZset key whose scores are greater than or equal to the min value and are less than or equal to the max value. Contrary to the default sorting of TairZset elements, the elements returned by this command are sorted by score in descending order, and elements with the same score are sorted in reverse lexicographical order. Note This command is similar to EXZRANGEBYSCORE except that this command sorts the results in reverse and places max in front of min. |
EXZRANGEBYLEX | EXZRANGEBYLEX key min max [LIMIT offset count]
| Returns the elements of a TairZset key whose scores are between the min value and the max value when all elements of the key have the same score. This ensures that elements are sorted in lexicographical order. |
EXZREVRANGEBYLEX | EXZREVRANGEBYLEX key max min [LIMIT offset count]
| Returns the elements of a TairZset key whose scores are between the min value and the max value when all elements of the key have the same score. This ensures that elements are sorted in lexicographical order. Note This command is similar to EXZRANGEBYLEX except that this command sorts the results in reverse and places max in front of min. |
EXZREM | EXZREM key member [member ...]
| Removes specified elements from a TairZset key. If a specified element does not exist, the element is ignored. |
EXZREMRANGEBYSCORE | EXZREMRANGEBYSCORE key min max
| Removes the elements whose scores are greater than or equal to the min value and are less than or equal to the max value from a TairZset key. |
EXZREMRANGEBYRANK | EXZREMRANGEBYRANK key start stop
| Removes the elements whose ranks are within the range of the start value and the stop value from a TairZset key. |
EXZREMRANGEBYLEX | EXZREMRANGEBYLEX key min max
| Removes the elements of a TairZset key whose scores are between the min value and the max value when all elements of the key have the same score. This ensures that elements are sorted in lexicographical order. Note If you use the min and max parameters to specify the same range for the EXZREMRANGEBYLEX and EXZRANGEBYLEX commands, the elements removed by the EXZREMRANGEBYLEX command are the same as those returned by the EXZRANGEBYLEX command. |
EXZCARD | EXZCARD key
| Returns the cardinality of a TairZset key. Cardinality indicates the number of elements in a key. |
EXZRANK | EXZRANK key member
| Returns the rank of an element in a TairZset key. Ranks are sorted by score in ascending order. Ranks use a zero-based numbering scheme, and the rank of the element that has the lowest score is 0. Rank is also known as index. |
EXZREVRANK | EXZREVRANK key member
| Returns the rank of an element in a TairZset key. Ranks are sorted by score in descending order. Ranks use a zero-based numbering scheme, and the rank of the element that has the highest score is 0. Rank is also known as index. Note This command is similar to EXZRANK except that this command sorts the results in reverse. |
EXZCOUNT | EXZCOUNT key min max
| Returns the number of elements in a TairZset key whose scores are between the min value and the max value. |
EXZLEXCOUNT | EXZLEXCOUNT key min max
| Returns the number of elements in a TairZset key whose scores are between the min value and the max value when all elements of the key have the same score. This ensures that elements are sorted in lexicographical order. |
EXZRANKBYSCORE | EXZRANKBYSCORE key score
| Calculates the rank of the specified element score in a TairZset key. Ranks are sorted by score in ascending order. Ranks use a zero-based numbering scheme, and the rank of the element that has the lowest score is 0. Rank is also known as index. Note If the score does not exist, the estimated rank of the score in the key is returned. If the score already exists, Tair ranks the score in front of the existing score in the key. |
EXZREVRANKBYSCORE | EXZREVRANKBYSCORE key score
| Calculates the rank of the specified element score in a TairZset key. Ranks are sorted by score in descending order. Ranks use a zero-based numbering scheme, and the rank of the element that has the highest score is 0. Rank is also known as index. Note If the score does not exist, the estimated rank of the score in the key is returned. If the score already exists, Tair ranks the score behind the existing score in the key. |
DEL | DEL key [key ...]
| Deletes one or more TairZset keys. |