Random rand = new Random();
byte[] data = new byte[8];
for(int i=0; i<1000000; i++){
rand.nextBytes(data);
pipeline.lpush("my-list", data);
}
/*
* switch to synchronous semantics
* the following call will block until
* all the responses for above + the llen()