@@ -2130,6 +2130,32 @@ public Long zrevrank(final byte[] key, final byte[] member) {
2130
2130
return connection .executeCommand (commandObjects .zrevrank (key , member ));
2131
2131
}
2132
2132
2133
+ /**
2134
+ * Returns the rank and the score of member in the sorted set stored at key, with the scores
2135
+ * ordered from low to high.
2136
+ * @param key the key
2137
+ * @param member the member
2138
+ * @return the KeyValue contains rank and score.
2139
+ */
2140
+ @ Override
2141
+ public KeyValue <Long , Double > zrankWithScore (byte [] key , byte [] member ) {
2142
+ checkIsInMultiOrPipeline ();
2143
+ return connection .executeCommand (commandObjects .zrankWithScore (key , member ));
2144
+ }
2145
+
2146
+ /**
2147
+ * Returns the rank and the score of member in the sorted set stored at key, with the scores
2148
+ * ordered from high to low.
2149
+ * @param key the key
2150
+ * @param member the member
2151
+ * @return the KeyValue contains rank and score.
2152
+ */
2153
+ @ Override
2154
+ public KeyValue <Long , Double > zrevrankWithScore (byte [] key , byte [] member ) {
2155
+ checkIsInMultiOrPipeline ();
2156
+ return connection .executeCommand (commandObjects .zrevrankWithScore (key , member ));
2157
+ }
2158
+
2133
2159
@ Override
2134
2160
public List <byte []> zrevrange (final byte [] key , final long start , final long stop ) {
2135
2161
checkIsInMultiOrPipeline ();
@@ -6559,6 +6585,32 @@ public Long zrevrank(final String key, final String member) {
6559
6585
return connection .executeCommand (commandObjects .zrevrank (key , member ));
6560
6586
}
6561
6587
6588
+ /**
6589
+ * Returns the rank and the score of member in the sorted set stored at key, with the scores
6590
+ * ordered from low to high.
6591
+ * @param key the key
6592
+ * @param member the member
6593
+ * @return the KeyValue contains rank and score.
6594
+ */
6595
+ @ Override
6596
+ public KeyValue <Long , Double > zrankWithScore (String key , String member ) {
6597
+ checkIsInMultiOrPipeline ();
6598
+ return connection .executeCommand (commandObjects .zrankWithScore (key , member ));
6599
+ }
6600
+
6601
+ /**
6602
+ * Returns the rank and the score of member in the sorted set stored at key, with the scores
6603
+ * ordered from high to low.
6604
+ * @param key the key
6605
+ * @param member the member
6606
+ * @return the KeyValue contains rank and score.
6607
+ */
6608
+ @ Override
6609
+ public KeyValue <Long , Double > zrevrankWithScore (String key , String member ) {
6610
+ checkIsInMultiOrPipeline ();
6611
+ return connection .executeCommand (commandObjects .zrevrankWithScore (key , member ));
6612
+ }
6613
+
6562
6614
@ Override
6563
6615
public List <String > zrevrange (final String key , final long start , final long stop ) {
6564
6616
checkIsInMultiOrPipeline ();
0 commit comments