Commit b7f48763 authored by Bill Wang's avatar Bill Wang
Browse files

fix cache impl with default value

parent a982e5a2
...@@ -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}") @Value("${aws.elasticache.cluster.endpoint:null}")
String REDIS_SEARCH_HOST; String REDIS_SEARCH_HOST;
@Value("${aws.elasticache.cluster.port}") @Value("${aws.elasticache.cluster.port:null}")
String REDIS_SEARCH_PORT; String REDIS_SEARCH_PORT;
@Value("${aws.elasticache.cluster.key}") @Value("${aws.elasticache.cluster.key:null}")
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();
......
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