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

hard code

parent adebaa24
No related branches found
No related tags found
1 merge request!191EKS Deploy
...@@ -41,7 +41,7 @@ public class IndexCacheImpl implements IIndexCache<String, Boolean>, AutoCloseab ...@@ -41,7 +41,7 @@ public class IndexCacheImpl implements IIndexCache<String, Boolean>, AutoCloseab
@Value("${aws.elasticache.cluster.index.expiration}") @Value("${aws.elasticache.cluster.index.expiration}")
String INDEX_CACHE_EXPIRATION; String INDEX_CACHE_EXPIRATION;
public IndexCacheImpl() throws K8sParameterNotFoundException, JsonProcessingException { public IndexCacheImpl() throws K8sParameterNotFoundException, JsonProcessingException {
int expTimeSeconds = Integer.parseInt(INDEX_CACHE_EXPIRATION) * 60; int expTimeSeconds = 60 * 60;
K8sLocalParameterProvider provider = new K8sLocalParameterProvider(); K8sLocalParameterProvider provider = new K8sLocalParameterProvider();
if (provider.getLocalMode()){ if (provider.getLocalMode()){
if (Boolean.parseBoolean(System.getenv("DISABLE_CACHE"))){ if (Boolean.parseBoolean(System.getenv("DISABLE_CACHE"))){
......
...@@ -40,7 +40,7 @@ public class SchemaCacheImpl implements ISchemaCache<String, String>, AutoClosea ...@@ -40,7 +40,7 @@ public class SchemaCacheImpl implements ISchemaCache<String, String>, AutoClosea
private ICache<String, String> cache; private ICache<String, String> cache;
private Boolean local = false; private Boolean local = false;
public SchemaCacheImpl() throws K8sParameterNotFoundException, JsonProcessingException { public SchemaCacheImpl() throws K8sParameterNotFoundException, JsonProcessingException {
int expTimeSeconds = Integer.parseInt(SCHEMA_CACHE_EXPIRATION) * 60; int expTimeSeconds = 60 * 60;
K8sLocalParameterProvider provider = new K8sLocalParameterProvider(); K8sLocalParameterProvider provider = new K8sLocalParameterProvider();
if (provider.getLocalMode()){ if (provider.getLocalMode()){
if (Boolean.parseBoolean(System.getenv("DISABLE_CACHE"))){ if (Boolean.parseBoolean(System.getenv("DISABLE_CACHE"))){
......
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