avoid creating pipeline responses and do it lazy

This commit is contained in:
Jonathan Leibiusky
2011-05-30 13:43:21 -03:00
parent 44c3eef60e
commit d690833ed6
5 changed files with 51 additions and 16 deletions

View File

@@ -46,7 +46,7 @@ public class PipeliningTest extends Assert {
Pipeline p = jedis.pipelined();
p.set("foo", "bar");
p.get("foo");
results = p.sync();
results = p.syncAndReturnAll();
assertEquals(2, results.size());
assertEquals("OK", results.get(0));