add 增加 RedisUtils 检查缓存对象是否存在方法

feature/model
konbai 2 years ago
parent 8448bcdc6d
commit 43b31edb75

@ -209,6 +209,15 @@ public class RedisUtils {
batch.execute(); batch.execute();
} }
/**
*
*
* @param key
*/
public static boolean isExistsObject(final String key) {
return CLIENT.getBucket(key).isExists();
}
/** /**
* List * List
* *

Loading…
Cancel
Save