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

2.X
疯狂的狮子li 2022-11-21 18:57:46 +08:00
parent 98a63bf3b2
commit 2f86b53ff5
1 changed files with 11 additions and 0 deletions

View File

@ -327,6 +327,17 @@ public class RedisUtils {
return rMap.getAll(rMap.keySet()); 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 * Hash
* *