cn.patterncat.cache.component.key.RedisCacheKeysExtractor Maven / Gradle / Ivy
package cn.patterncat.cache.component.key;
import java.util.Collection;
import java.util.Collections;
import org.springframework.cache.Cache;
/**
* https://github.com/ipalbeniz/spring-boot-caches-endpoint/blob/master/src/main/java/com/demo/autoconfiguration/cachekeys/RedisCacheKeysExtractor.java
*/
public class RedisCacheKeysExtractor implements CacheKeysExtractor {
@Override
public Collection extractKeys(Cache cache) {
//NOTE redis的keys操作有点危险,容易造成慢查询
return Collections.emptyList();
}
}