76777879808182838485
return this; } // Redis Common Operations public String set(String value) { Jedis jedis = getResource(); String set = jedis.set(key(), value); returnResource(jedis); return set; }
83848586878889909192
returnResource(jedis); return set; } public String get() { Jedis jedis = getResource(); String string = jedis.get(key()); returnResource(jedis); return string; }
90919293949596979899
returnResource(jedis); return string; } public Long incr() { Jedis jedis = getResource(); Long incr = jedis.incr(key()); returnResource(jedis); return incr; }
979899100101102103104105106
returnResource(jedis); return incr; } public List<Object> multi(TransactionBlock transaction) { Jedis jedis = getResource(); List<Object> multi = jedis.multi(transaction); returnResource(jedis); return multi; }
104105106107108109110111112113
returnResource(jedis); return multi; } public Long del() { Jedis jedis = getResource(); Long del = jedis.del(key()); returnResource(jedis); return del; }
111112113114115116117118119120
returnResource(jedis); return del; } public Boolean exists() { Jedis jedis = getResource(); Boolean exists = jedis.exists(key()); returnResource(jedis); return exists; }
119120121122123124125126127128
return exists; } // Redis Hash Operations public String hmset(Map<String, String> hash) { Jedis jedis = getResource(); String hmset = jedis.hmset(key(), hash); returnResource(jedis); return hmset; }
126127128129130131132133134135
returnResource(jedis); return hmset; } public Map<String, String> hgetAll() { Jedis jedis = getResource(); Map<String, String> hgetAll = jedis.hgetAll(key()); returnResource(jedis); return hgetAll; }
133134135136137138139140141142
returnResource(jedis); return hgetAll; } public String hget(String field) { Jedis jedis = getResource(); String value = jedis.hget(key(), field); returnResource(jedis); return value; }
140141142143144145146147148149
returnResource(jedis); return value; } public Long hdel(String field) { Jedis jedis = getResource(); Long hdel = jedis.hdel(key(), field); returnResource(jedis); return hdel; }