public List<byte[]> bLPop(int timeout, byte[]... keys) { Object[] args = SrpUtils.convert(timeout, keys); try { if (isPipelined()) { pipeline(pipeline.blpop(args)); return null; } return SrpUtils.toBytesList(client.blpop(args).data()); } catch (Exception ex) { throw convertSrpAccessException(ex); } }
@Test public void blpop() { rc.del(a("list1", "list2")); eq(3, rc.rpush("list1", a("a", "b", "c"))); eq(a("list1", "a"), rc.blpop(a("list1", "list2", "0"))); }