Home > Back-end >  Java jedis obtain all the score in the zset and value
Java jedis obtain all the score in the zset and value

Time:09-22

Java, how to use the jedis query zset all score and the value of collection

CodePudding user response:

Public Set ZrevrangeWithScores (String key, long start, long end)

CodePudding user response:

The result is like this:
[{" binaryElement ":" enNldA==", "element" : "zset", "score" : 20.0}, {" binaryElement ":" dGVzc3Nzcw==", "element" : "tesssss", "score" : 10.0}]

CodePudding user response:

refer to the second floor rookie _645 response:
the result is like this:
[{" binaryElement ":" enNldA==", "element" : "zset", "score" : 20.0}, {" binaryElement ":" dGVzc3Nzcw==", "element" : "tesssss", "score" : 10.0}]
Java is how to do?


How the Java implementation, contains score and the value of the object is the result
  • Related