Skip to content

Instantly share code, notes, and snippets.

View halilduygulu's full-sized avatar

Halil Duygulu halilduygulu

View GitHub Profile
@tareqabedrabbo
tareqabedrabbo / Pipelined SET.java
Created May 3, 2011 20:59
Redis Pipelines and Transactions
Pipeline pipeline = jedis.pipelined();
long start = System.currentTimeMillis();
for (int i = 0; i < 100000; i++) {
pipeline.set("" + i, "" + i);
}
List<Object> results = pipeline.execute();
long end = System.currentTimeMillis();
System.out.println("Pipelined SET: " + ((end - start)/1000.0) + " seconds");