Skip to content

Instantly share code, notes, and snippets.

@deepakverma
deepakverma / Jedis.java
Last active January 22, 2019 19:31
Jedis Sample
try(Jedis jedis = jedisPool.getResource())
{
//pipeline
Pipeline p = jedis.pipelined();
Response<String> pipeIdResponse = p.get("ID");
Response<String> pipeNameResponse = p.get("Name");
p.sync();
String id = pipeIdResponse.get();
String name = pipeNameResponse.get();