add 增加 RedisUtils 获取缓存Map的key列表

2.X
疯狂的狮子li 2 years ago
parent 98a63bf3b2
commit 2f86b53ff5

@ -327,6 +327,17 @@ public class RedisUtils {
return rMap.getAll(rMap.keySet());
}
/**
* Mapkey
*
* @param key
* @return key
*/
public static <T> Set<String> getCacheMapKeySet(final String key) {
RMap<String, T> rMap = CLIENT.getMap(key);
return rMap.keySet();
}
/**
* Hash
*

Loading…
Cancel
Save