fix jedis map ex

This commit is contained in:
Loredana 2018-12-02 23:08:16 +02:00
parent 857192358c
commit 0147b5c699

View File

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