Skip to content
Snippets Groups Projects
Commit 9a316525 authored by Bill Wang's avatar Bill Wang
Browse files

update on cache autowire injection

parent e287f757
No related branches found
No related tags found
1 merge request!85FIX AWS CI
......@@ -33,11 +33,11 @@ import java.util.Map;
@Component
public class GroupCache {
@Value("${aws.elasticache.cluster.endpoint:null}")
@Value("${aws.elasticache.cluster.endpoint}")
String REDIS_SEARCH_HOST;
@Value("${aws.elasticache.cluster.port:null}")
@Value("${aws.elasticache.cluster.port}")
String REDIS_SEARCH_PORT;
@Value("${aws.elasticache.cluster.key:null}")
@Value("${aws.elasticache.cluster.key}")
String REDIS_SEARCH_KEY;
public ICache<String, Groups> GetGroupCache() throws K8sParameterNotFoundException, JsonProcessingException {
K8sLocalParameterProvider provider = new K8sLocalParameterProvider();
......
......@@ -45,6 +45,6 @@ server.ssl.key-store-password=${SSL_KEY_STORE_PASSWORD:}
spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.security.SecurityAutoConfiguration
## AWS ElastiCache configuration
aws.elasticache.cluster.endpoint=${CACHE_CLUSTER_ENDPOINT}
aws.elasticache.cluster.port=${CACHE_CLUSTER_PORT}
aws.elasticache.cluster.key=${CACHE_CLUSTER_KEY}
\ No newline at end of file
aws.elasticache.cluster.endpoint=${CACHE_CLUSTER_ENDPOINT:null}
aws.elasticache.cluster.port=${CACHE_CLUSTER_PORT:null}
aws.elasticache.cluster.key=${CACHE_CLUSTER_KEY:null}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment