Commit 4f332398 by zt

修改

parent 988347dd
......@@ -18,24 +18,6 @@ public class RedisUtils {
private JedisPool jedisPool;
/**
* 判断key是否存在
*
* @param key
* @param indexDb
* @return boolean
**/
public boolean exists(String key, int indexDb) {
Jedis jedis = jedisPool.getResource();
jedis.select(indexDb);
boolean exist = jedis.exists(key);
if (null != jedis && null != jedisPool) {
returnResource(jedisPool, jedis);
}
return exist;
}
/**
* 通过key获取储存在redis中的value
* 并释放连接
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment