double builder should build from string

This commit is contained in:
Jonathan Leibiusky
2011-04-16 17:06:00 -03:00
parent 97dd134eec
commit 443686b155
3 changed files with 36 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
package redis.clients.jedis.tests;
import java.io.UnsupportedEncodingException;
import java.util.HashMap;
import java.util.List;
import java.util.Set;
@@ -84,4 +85,24 @@ public class PipeliningTest extends Assert {
string.get();
p.sync();
}
@Test
public void lala() {
Pipeline p = jedis.pipelined();
HashMap<String, Integer> mydata = new HashMap<String, Integer>();
mydata.put("test1", 1);
mydata.put("test2", 1);
mydata.put("test3", 1);
mydata.put("test4", 1);
mydata.put("test5", 1);
for (String txtfield : mydata.keySet()) {
p.zadd("somekey", mydata.get(txtfield), txtfield);
p.zincrby("SUPERUNION", mydata.get(txtfield), txtfield);
}
p.sync();
}
}