redisconf17 - cache all the things! data integration via jedis
TRANSCRIPT
![Page 2: RedisConf17 - Cache All the Things! Data Integration via Jedis](https://reader031.vdocuments.net/reader031/viewer/2022030318/5a649b797f8b9a27568b7621/html5/thumbnails/2.jpg)
Enterprise Data DNA
Commercial Customers Across Verticals
200,000 downloads50 of the Fortune 100Doubling each quarter
Strong Partner Ecosystem Open Source Success
Mission: empower enterprises to harness their data in motion.
![Page 3: RedisConf17 - Cache All the Things! Data Integration via Jedis](https://reader031.vdocuments.net/reader031/viewer/2022030318/5a649b797f8b9a27568b7621/html5/thumbnails/3.jpg)
![Page 4: RedisConf17 - Cache All the Things! Data Integration via Jedis](https://reader031.vdocuments.net/reader031/viewer/2022030318/5a649b797f8b9a27568b7621/html5/thumbnails/4.jpg)
![Page 5: RedisConf17 - Cache All the Things! Data Integration via Jedis](https://reader031.vdocuments.net/reader031/viewer/2022030318/5a649b797f8b9a27568b7621/html5/thumbnails/5.jpg)
![Page 6: RedisConf17 - Cache All the Things! Data Integration via Jedis](https://reader031.vdocuments.net/reader031/viewer/2022030318/5a649b797f8b9a27568b7621/html5/thumbnails/6.jpg)
![Page 7: RedisConf17 - Cache All the Things! Data Integration via Jedis](https://reader031.vdocuments.net/reader031/viewer/2022030318/5a649b797f8b9a27568b7621/html5/thumbnails/7.jpg)
●
●●
![Page 8: RedisConf17 - Cache All the Things! Data Integration via Jedis](https://reader031.vdocuments.net/reader031/viewer/2022030318/5a649b797f8b9a27568b7621/html5/thumbnails/8.jpg)
●●●●
![Page 9: RedisConf17 - Cache All the Things! Data Integration via Jedis](https://reader031.vdocuments.net/reader031/viewer/2022030318/5a649b797f8b9a27568b7621/html5/thumbnails/9.jpg)
![Page 10: RedisConf17 - Cache All the Things! Data Integration via Jedis](https://reader031.vdocuments.net/reader031/viewer/2022030318/5a649b797f8b9a27568b7621/html5/thumbnails/10.jpg)
https://github.com/xetorthio/jedis
![Page 11: RedisConf17 - Cache All the Things! Data Integration via Jedis](https://reader031.vdocuments.net/reader031/viewer/2022030318/5a649b797f8b9a27568b7621/html5/thumbnails/11.jpg)
import redis.clients.jedis.Jedis;
Jedis jedis = new Jedis();
jedis.set("foo", "bar");
String s = jedis.get("foo");
![Page 12: RedisConf17 - Cache All the Things! Data Integration via Jedis](https://reader031.vdocuments.net/reader031/viewer/2022030318/5a649b797f8b9a27568b7621/html5/thumbnails/12.jpg)
jedis.hset("pat", "employer", "StreamSets");
jedis.hset("pat", "position", "Community Champion");
String employer = jedis.hget("pat", "employer");
Map<String, String> fields = jedis.hgetAll("pat");
String position = fields.get("position");
![Page 13: RedisConf17 - Cache All the Things! Data Integration via Jedis](https://reader031.vdocuments.net/reader031/viewer/2022030318/5a649b797f8b9a27568b7621/html5/thumbnails/13.jpg)
![Page 14: RedisConf17 - Cache All the Things! Data Integration via Jedis](https://reader031.vdocuments.net/reader031/viewer/2022030318/5a649b797f8b9a27568b7621/html5/thumbnails/14.jpg)
Pipeline p = jedis.pipelined();
p.hset("pat", "employer", "StreamSets");
p.hset("pat", "position", "Community Champion");
...lots more operations…
p.sync();
![Page 15: RedisConf17 - Cache All the Things! Data Integration via Jedis](https://reader031.vdocuments.net/reader031/viewer/2022030318/5a649b797f8b9a27568b7621/html5/thumbnails/15.jpg)
![Page 16: RedisConf17 - Cache All the Things! Data Integration via Jedis](https://reader031.vdocuments.net/reader031/viewer/2022030318/5a649b797f8b9a27568b7621/html5/thumbnails/16.jpg)
JedisPool pool = new JedisPool(new JedisPoolConfig(), "localhost");
...
try (Jedis jedis = pool.getResource()) {
jedis.set("foo", "bar");
}
...
pool.destroy();
![Page 17: RedisConf17 - Cache All the Things! Data Integration via Jedis](https://reader031.vdocuments.net/reader031/viewer/2022030318/5a649b797f8b9a27568b7621/html5/thumbnails/17.jpg)
Transaction t = jedis.multi();
t.hset("pat", "employer", "StreamSets");
t.hset("pat", "position", "Community Champion");
...lots more operations…
t.exec();
![Page 18: RedisConf17 - Cache All the Things! Data Integration via Jedis](https://reader031.vdocuments.net/reader031/viewer/2022030318/5a649b797f8b9a27568b7621/html5/thumbnails/18.jpg)
![Page 19: RedisConf17 - Cache All the Things! Data Integration via Jedis](https://reader031.vdocuments.net/reader031/viewer/2022030318/5a649b797f8b9a27568b7621/html5/thumbnails/19.jpg)