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;
@Component
public class GroupCache {
@Value("${aws.elasticache.cluster.endpoint}")
@Value("${aws.elasticache.cluster.endpoint:null}")
String REDIS_SEARCH_HOST;
@Value("${aws.elasticache.cluster.port}")
@Value("${aws.elasticache.cluster.port:null}")
String REDIS_SEARCH_PORT;
@Value("${aws.elasticache.cluster.key}")
@Value("${aws.elasticache.cluster.key:null}")
String REDIS_SEARCH_KEY;
public ICache<String, Groups> GetGroupCache() throws K8sParameterNotFoundException, JsonProcessingException {
K8sLocalParameterProvider provider = new K8sLocalParameterProvider();
......
Markdown is supported
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