我想您要达到的目标是这样完成的。
List<Response> responses = new ArrayList<>();Pipeline p = jedis.pipelined();for (int id: ids) {responses .add(p.get(id));}p.sync();for(Reponse response : responses){Object o = response.get();}
我想您要达到的目标是这样完成的。
List<Response> responses = new ArrayList<>();Pipeline p = jedis.pipelined();for (int id: ids) {responses .add(p.get(id));}p.sync();for(Reponse response : responses){Object o = response.get();}