fix jedis map ex

This commit is contained in:
Loredana 2018-12-02 23:08:16 +02:00
parent 857192358c
commit 0147b5c699
1 changed files with 2 additions and 2 deletions

View File

@ -144,8 +144,8 @@ public class JedisIntegrationTest {
scores.put("PlayerTwo", 1500.0);
scores.put("PlayerThree", 8200.0);
scores.keySet().forEach(player -> {
jedis.zadd(key, scores.get(player), player);
scores.entrySet().forEach(playerScore -> {
jedis.zadd(key, playerScore.getValue(), playerScore.getKey());
});
Set<String> players = jedis.zrevrange(key, 0, 1);