update 优化 删除掉有问题的方法(使用RedisUtils)

2.X
疯狂的狮子Li 4 months ago
parent 28dff1831f
commit fb0d67d7df

@ -10,10 +10,9 @@ import org.springframework.cache.CacheManager;
import java.util.Set; import java.util.Set;
/** /**
* {@link } *
* *
* @author Michelle.Chung * @author Michelle.Chung
* @date 2022/8/13
*/ */
@NoArgsConstructor(access = AccessLevel.PRIVATE) @NoArgsConstructor(access = AccessLevel.PRIVATE)
@SuppressWarnings(value = {"unchecked"}) @SuppressWarnings(value = {"unchecked"})
@ -21,16 +20,6 @@ public class CacheUtils {
private static final CacheManager CACHE_MANAGER = SpringUtils.getBean(CacheManager.class); private static final CacheManager CACHE_MANAGER = SpringUtils.getBean(CacheManager.class);
/**
* KEY
*
* @param cacheNames
*/
public static Set<Object> keys(String cacheNames) {
RMap<Object, Object> rmap = (RMap<Object, Object>) CACHE_MANAGER.getCache(cacheNames).getNativeCache();
return rmap.keySet();
}
/** /**
* *
* *

Loading…
Cancel
Save