dnet-applications/apps/dnet-exporter-api/src/main/java/eu/dnetlib/CacheCustomizer.java

19 lines
772 B
Java
Raw Normal View History

2022-02-04 10:12:15 +01:00
package eu.dnetlib;
2023-01-23 10:27:07 +01:00
import static java.util.Arrays.asList;
2022-02-04 10:12:15 +01:00
import org.springframework.boot.autoconfigure.cache.CacheManagerCustomizer;
import org.springframework.cache.concurrent.ConcurrentMapCacheManager;
import org.springframework.stereotype.Component;
@Component
public class CacheCustomizer implements CacheManagerCustomizer<ConcurrentMapCacheManager> {
2023-01-23 10:27:07 +01:00
@Override
public void customize(final ConcurrentMapCacheManager cacheManager) {
cacheManager
.setCacheNames(asList("fundingpath-ids", "indexdsinfo-cache", "objectstoreid-cache", "context-cache", "context-cache-funder", "context-cache-community", "dsm-aggregationhistory-cache-v1", "dsm-aggregationhistory-cache-v2", "dsm-firstharvestdate-cache", "vocabularies-cache", "community-cache", "info"));
}
2022-02-04 10:12:15 +01:00
2023-01-23 10:27:07 +01:00
}