147148149150151152153154155156
returnResource(jedis); return hdel; } public Long hlen() { Jedis jedis = getResource(); Long hlen = jedis.hlen(key()); returnResource(jedis); return hlen; }
154155156157158159160161162163
returnResource(jedis); return hlen; } public Set<String> hkeys() { Jedis jedis = getResource(); Set<String> hkeys = jedis.hkeys(key()); returnResource(jedis); return hkeys; }
162163164165166167168169170171
return hkeys; } // Redis Set Operations public Long sadd(String member) { Jedis jedis = getResource(); Long reply = jedis.sadd(key(), member); returnResource(jedis); return reply; }
169170171172173174175176177178
returnResource(jedis); return reply; } public Long srem(String member) { Jedis jedis = getResource(); Long reply = jedis.srem(key(), member); returnResource(jedis); return reply; }
176177178179180181182183184185
returnResource(jedis); return reply; } public Set<String> smembers() { Jedis jedis = getResource(); Set<String> members = jedis.smembers(key()); returnResource(jedis); return members; }
184185186187188189190191192193
return members; } // Redis List Operations public Long rpush(String string) { Jedis jedis = getResource(); Long rpush = jedis.rpush(key(), string); returnResource(jedis); return rpush; }
191192193194195196197198199200
returnResource(jedis); return rpush; } public String lset(int index, String value) { Jedis jedis = getResource(); String lset = jedis.lset(key(), index, value); returnResource(jedis); return lset; }
198199200201202203204205206207
returnResource(jedis); return lset; } public String lindex(int index) { Jedis jedis = getResource(); String lindex = jedis.lindex(key(), index); returnResource(jedis); return lindex; }
205206207208209210211212213214
returnResource(jedis); return lindex; } public Long llen() { Jedis jedis = getResource(); Long llen = jedis.llen(key()); returnResource(jedis); return llen; }
212213214215216217218219220221
returnResource(jedis); return llen; } public Long lrem(int count, String value) { Jedis jedis = getResource(); Long lrem = jedis.lrem(key(), count, value); returnResource(jedis); return lrem; }