Commit 9a316525 authored by Bill Wang's avatar Bill Wang
Browse files

update on cache autowire injection

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