Upload
redis-labs
View
225
Download
1
Embed Size (px)
Citation preview
Pat PattersonCommunity Champion
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.
●
●●
●●●●
https://github.com/xetorthio/jedis
import redis.clients.jedis.Jedis;
Jedis jedis = new Jedis();
jedis.set("foo", "bar");
String s = jedis.get("foo");
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");
Pipeline p = jedis.pipelined();
p.hset("pat", "employer", "StreamSets");
p.hset("pat", "position", "Community Champion");
...lots more operations…
p.sync();
JedisPool pool = new JedisPool(new JedisPoolConfig(), "localhost");
...
try (Jedis jedis = pool.getResource()) {
jedis.set("foo", "bar");
}
...
pool.destroy();
Transaction t = jedis.multi();
t.hset("pat", "employer", "StreamSets");
t.hset("pat", "position", "Community Champion");
...lots more operations…
t.exec();
Pat PattersonCommunity Champion