main
黄海 2 years ago
parent 6acdaf5817
commit d02f49fe30

@ -23,7 +23,8 @@ public class RedisKit {
} }
public static boolean Exists(String key) { public static boolean Exists(String key) {
return Redis.use().call(jedis -> jedis.exists(key)); if (Redis.use() != null) return Redis.use().call(jedis -> jedis.exists(key));
return false;
} }

Loading…
Cancel
Save