Skip to content
Snippets Groups Projects
Commit 337d6be0 authored by Ashwani Pandey's avatar Ashwani Pandey Committed by Anuj Gupta
Browse files

Ibm issue fix

parent 0bee481f
No related branches found
No related tags found
1 merge request!616Ibm issue fix
......@@ -8,10 +8,10 @@ import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
@Component
public class IndexCache implements IIndexCache<String, Boolean> {
public class IndexCacheImpl implements IIndexCache<String, Boolean> {
private VmCache<String, Boolean> cache;
public IndexCache(@Value("${INDEX_CACHE_EXPIRATION}") final String INDEX_CACHE_EXPIRATION,
public IndexCacheImpl(@Value("${INDEX_CACHE_EXPIRATION}") final String INDEX_CACHE_EXPIRATION,
@Value("${MAX_CACHE_VALUE_SIZE}") final String MAX_CACHE_VALUE_SIZE) {
cache = new VmCache<>(Integer.parseInt(INDEX_CACHE_EXPIRATION) * 60,
Integer.parseInt(MAX_CACHE_VALUE_SIZE));
......
......@@ -9,10 +9,10 @@ import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
@Component
public class SchemaCache implements ISchemaCache<String, String> {
public class SchemaCacheImpl implements ISchemaCache<String, String> {
private VmCache<String, String> cache;
public SchemaCache(@Value("${SCHEMA_CACHE_EXPIRATION}") final String SCHEMA_CACHE_EXPIRATION,
public SchemaCacheImpl(@Value("${SCHEMA_CACHE_EXPIRATION}") final String SCHEMA_CACHE_EXPIRATION,
@Value("${MAX_CACHE_VALUE_SIZE}") final String MAX_CACHE_VALUE_SIZE) {
cache = new VmCache<>(Integer.parseInt(SCHEMA_CACHE_EXPIRATION) * 60,
Integer.parseInt(MAX_CACHE_VALUE_SIZE));
......@@ -37,4 +37,4 @@ public class SchemaCache implements ISchemaCache<String, String> {
public void clearAll() {
this.cache.clearAll();
}
}
}
\ No newline at end of file
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