4142434445464748495051
public void multi() { Transaction trans = jedis.multi(); trans.sadd("foo", "a"); trans.sadd("foo", "b"); trans.scard("foo"); List<Object> response = trans.exec(); List<Object> expected = new ArrayList<Object>(); expected.add(1L);
5657585960616263646566
// Binary trans = jedis.multi(); trans.sadd(bfoo, ba); trans.sadd(bfoo, bb); trans.scard(bfoo); response = trans.exec(); expected = new ArrayList<Object>(); expected.add(1L);
508509510511512513514515516517518
String by = "kb:doc:*->" + sort; String id = parseAndSearch(conn, queryString, 300); Transaction trans = conn.multi(); trans.scard("idx:" + id); SortingParams params = new SortingParams(); if (desc) { params.desc(); } if (alpha){