|
|
@ -50,14 +50,6 @@ public final class RedisUtil {
|
|
|
|
* @param key 键
|
|
|
|
* @param key 键
|
|
|
|
* @return true 存在 false不存在
|
|
|
|
* @return true 存在 false不存在
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public boolean hasKey(String key) {
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
return redisTemplate.hasKey(key);
|
|
|
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|