Merge pull request #5830 from eugenp/fix-jedis-map

fix jedis map ex
This commit is contained in:
Loredana Crusoveanu 2018-12-16 13:46:43 +02:00 committed by GitHub
commit 0b929240fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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);