update:holiday in Redis
This commit is contained in:
@@ -135,6 +135,15 @@ public class RedisTools {
|
||||
jedis.close();
|
||||
return flag;
|
||||
}
|
||||
public static boolean exists(String key){
|
||||
if(isNotInstallRedis){
|
||||
return false;
|
||||
}
|
||||
Jedis jedis=getRedis();
|
||||
boolean flag=jedis.exists(key);
|
||||
jedis.close();
|
||||
return flag;
|
||||
}
|
||||
|
||||
public static Jedis getRedis() {
|
||||
return new Jedis(host, port);
|
||||
|
||||
Reference in New Issue
Block a user