Skip to content
Snippets Groups Projects
Commit f56a86fa authored by Bill Wang's avatar Bill Wang
Browse files

rename

parent d403f4fc
No related branches found
No related tags found
1 merge request!191EKS Deploy
......@@ -15,7 +15,7 @@
package org.opengroup.osdu.indexer.aws.cache;
import com.fasterxml.jackson.core.JsonProcessingException;
import org.opengroup.osdu.core.aws.cache.AwsElasticCache;
import org.opengroup.osdu.core.aws.cache.AwRedisCache;
import org.opengroup.osdu.core.aws.ssm.K8sParameterNotFoundException;
import org.opengroup.osdu.core.common.cache.ICache;
import org.opengroup.osdu.core.common.cache.RedisCache;
......@@ -29,7 +29,7 @@ public class SchemaCacheImpl implements ISchemaCache<String, String>, AutoClosea
private ICache<String, String> cache;
private Boolean local = false;
public SchemaCacheImpl(@Value("${aws.elasticache.cluster.schema.expiration}") final String SCHEMA_CACHE_EXPIRATION) throws K8sParameterNotFoundException, JsonProcessingException {
cache = AwsElasticCache.RedisCache(Integer.parseInt(SCHEMA_CACHE_EXPIRATION) * 60, String.class, String.class);
cache = AwsRedisCache.RedisCache(Integer.parseInt(SCHEMA_CACHE_EXPIRATION) * 60, String.class, String.class);
if (cache.getClass() == RedisCache.class){
local = false;
}else{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment