Set default cache 19/109519/1
authorPlummer, Brittany <brittany.plummer@att.com>
Wed, 24 Jun 2020 14:55:14 +0000 (10:55 -0400)
committerBenjamin, Max (mb388a) <mb388a@att.com>
Wed, 24 Jun 2020 14:55:14 +0000 (10:55 -0400)
Set as default cache in case there are multiple options

Issue-ID: SO-3006
Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com>
Change-Id: I9d448eee56dec61be4146108dec246633b7cede2

adapters/mso-adapter-utils/src/main/java/org/onap/so/openstack/utils/NovaCacheConfig.java

index 2f7d19f..cc79e61 100644 (file)
@@ -24,12 +24,14 @@ import org.springframework.cache.CacheManager;
 import org.springframework.cache.caffeine.CaffeineCacheManager;
 import org.springframework.context.annotation.Bean;
 import org.springframework.context.annotation.Configuration;
+import org.springframework.context.annotation.Primary;
 import com.github.benmanes.caffeine.cache.Caffeine;
 
 @Configuration
 public class NovaCacheConfig {
 
     @Bean
+    @Primary
     public CacheManager cacheManager() {
         CaffeineCacheManager cacheManager = new CaffeineCacheManager("novaClient");
         cacheManager.setCaffeine(caffeineCacheBuilder());