diff --git a/provider/indexer-aws/src/main/java/org/opengroup/osdu/indexer/aws/cache/IndexCacheImpl.java b/provider/indexer-aws/src/main/java/org/opengroup/osdu/indexer/aws/cache/IndexCacheImpl.java index b3e98652c18c1f64b19f601f337c9d1f612a164d..fc33e78a6275a8a4ef707b586021e8be9b86a40e 100644 --- a/provider/indexer-aws/src/main/java/org/opengroup/osdu/indexer/aws/cache/IndexCacheImpl.java +++ b/provider/indexer-aws/src/main/java/org/opengroup/osdu/indexer/aws/cache/IndexCacheImpl.java @@ -32,11 +32,11 @@ public class IndexCacheImpl implements IIndexCache<String, Boolean>, AutoCloseab private ICache<String, Boolean> cache; private Boolean local; - @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; @Value("${aws.elasticache.cluster.index.expiration}") String INDEX_CACHE_EXPIRATION; diff --git a/provider/indexer-aws/src/main/java/org/opengroup/osdu/indexer/aws/cache/SchemaCacheImpl.java b/provider/indexer-aws/src/main/java/org/opengroup/osdu/indexer/aws/cache/SchemaCacheImpl.java index ecb074394d0a1048b6dd5f01e45ba57a7946363c..27a1f3792a25a47a331117a85e52f55a62510efd 100644 --- a/provider/indexer-aws/src/main/java/org/opengroup/osdu/indexer/aws/cache/SchemaCacheImpl.java +++ b/provider/indexer-aws/src/main/java/org/opengroup/osdu/indexer/aws/cache/SchemaCacheImpl.java @@ -29,13 +29,13 @@ import java.util.Map; @Component public class SchemaCacheImpl implements ISchemaCache<String, String>, AutoCloseable { - @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; - @Value("${aws.elasticache.cluster.schema.expiration:60}") + @Value("${aws.elasticache.cluster.schema.expiration}") String SCHEMA_CACHE_EXPIRATION; private ICache<String, String> cache; private Boolean local = false;