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 2858f8218281de831cba3575086cc213cd707e9f..ca02bfaeb407a0f0c13ebe1b3d45432c60a4bfeb 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 @@ -15,12 +15,10 @@ package org.opengroup.osdu.indexer.aws.cache; import com.fasterxml.jackson.core.JsonProcessingException; -import org.opengroup.osdu.core.aws.cache.AwsRedisCache; import org.opengroup.osdu.core.aws.cache.DummyCache; import org.opengroup.osdu.core.aws.ssm.K8sLocalParameterProvider; import org.opengroup.osdu.core.aws.ssm.K8sParameterNotFoundException; import org.opengroup.osdu.core.common.cache.ICache; -import org.opengroup.osdu.core.common.cache.MultiTenantCache; import org.opengroup.osdu.core.common.cache.RedisCache; import org.opengroup.osdu.core.common.cache.VmCache; import org.opengroup.osdu.indexer.provider.interfaces.ISchemaCache; @@ -31,11 +29,11 @@ import java.util.Map; @Component public class SchemaCacheImpl implements ISchemaCache<String, String>, AutoCloseable { - @Value("${aws.elasticache.cluster.schema.endpoint}") + @Value("${aws.elasticache.cluster.endpoint}") String REDIS_SEARCH_HOST; - @Value("${aws.elasticache.cluster.schema.port}") + @Value("${aws.elasticache.cluster.port}") String REDIS_SEARCH_PORT; - @Value("${aws.elasticache.cluster.schema.key}") + @Value("${aws.elasticache.cluster.key}") String REDIS_SEARCH_KEY; @Value("${aws.elasticache.cluster.schema.expiration}") String SCHEMA_CACHE_EXPIRATION; diff --git a/provider/indexer-aws/src/main/resources/application.properties b/provider/indexer-aws/src/main/resources/application.properties index cf570905d6585805d6f5ed81f6eda671da194db7..2cc388205c3ac8773339da76ed9a811eaa5d25cd 100644 --- a/provider/indexer-aws/src/main/resources/application.properties +++ b/provider/indexer-aws/src/main/resources/application.properties @@ -32,7 +32,9 @@ STORAGE_QUERY_RECORD_FOR_CONVERSION_HOST=${STORAGE_BASE_URL}/api/storage/v2/quer STORAGE_RECORDS_BATCH_SIZE=20 INDEXER_QUEUE_HOST="" ## AWS ElastiCache configuration - +aws.elasticache.cluster.endpoint=${CACHE_CLUSTER_ENDPOINT} +aws.elasticache.cluster.port=${CACHE_CLUSTER_PORT} +aws.elasticache.cluster.key=${CACHE_CLUSTER_KEY} ## Cache Settings aws.elasticache.cluster.index.expiration=60 aws.elasticache.cluster.schema.expiration=60