From 36bc039f0aef3f9522061d114cea3054954eed69 Mon Sep 17 00:00:00 2001
From: Ashwani Pandey <ashwani.pandey3@ibm.com>
Date: Tue, 12 Sep 2023 17:04:45 +0530
Subject: [PATCH] Removing these two classses to avoid conflicts call.These two
 file already part of core service.

---
 .../osdu/indexer/ibm/cache/IndexCache.java    | 39 ------------------
 .../osdu/indexer/ibm/cache/SchemaCache.java   | 40 -------------------
 2 files changed, 79 deletions(-)
 delete mode 100644 provider/indexer-ibm/src/main/java/org/opengroup/osdu/indexer/ibm/cache/IndexCache.java
 delete mode 100644 provider/indexer-ibm/src/main/java/org/opengroup/osdu/indexer/ibm/cache/SchemaCache.java

diff --git a/provider/indexer-ibm/src/main/java/org/opengroup/osdu/indexer/ibm/cache/IndexCache.java b/provider/indexer-ibm/src/main/java/org/opengroup/osdu/indexer/ibm/cache/IndexCache.java
deleted file mode 100644
index 9a6389174..000000000
--- a/provider/indexer-ibm/src/main/java/org/opengroup/osdu/indexer/ibm/cache/IndexCache.java
+++ /dev/null
@@ -1,39 +0,0 @@
-/* Licensed Materials - Property of IBM              */		
-/* (c) Copyright IBM Corp. 2020. All Rights Reserved.*/
-package org.opengroup.osdu.indexer.ibm.cache;
-
-import org.opengroup.osdu.core.common.cache.VmCache;
-import org.opengroup.osdu.core.common.provider.interfaces.IIndexCache;
-import org.springframework.beans.factory.annotation.Value;
-import org.springframework.stereotype.Component;
-
-@Component
-public class IndexCache implements IIndexCache<String, Boolean> {
-    private VmCache<String, Boolean> cache;
-
-    public IndexCache(@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));
-    }
-
-    @Override
-    public void put(String s, Boolean o) {
-        this.cache.put(s, o);
-    }
-
-    @Override
-    public Boolean get(String s) {
-        return this.cache.get(s);
-    }
-
-    @Override
-    public void delete(String s) {
-        this.cache.delete(s);
-    }
-
-    @Override
-    public void clearAll() {
-        this.cache.clearAll();
-    }
-}
diff --git a/provider/indexer-ibm/src/main/java/org/opengroup/osdu/indexer/ibm/cache/SchemaCache.java b/provider/indexer-ibm/src/main/java/org/opengroup/osdu/indexer/ibm/cache/SchemaCache.java
deleted file mode 100644
index 6a85261f7..000000000
--- a/provider/indexer-ibm/src/main/java/org/opengroup/osdu/indexer/ibm/cache/SchemaCache.java
+++ /dev/null
@@ -1,40 +0,0 @@
-/* Licensed Materials - Property of IBM              */		
-/* (c) Copyright IBM Corp. 2020. All Rights Reserved.*/
-
-package org.opengroup.osdu.indexer.ibm.cache;
-
-import org.opengroup.osdu.core.common.cache.VmCache;
-import org.opengroup.osdu.indexer.provider.interfaces.ISchemaCache;
-import org.springframework.beans.factory.annotation.Value;
-import org.springframework.stereotype.Component;
-
-@Component
-public class SchemaCache implements ISchemaCache<String, String> {
-    private VmCache<String, String> cache;
-
-    public SchemaCache(@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));
-    }
-
-    @Override
-    public void put(String s, String o) {
-        this.cache.put(s, o);
-    }
-
-    @Override
-    public String get(String s) {
-        return this.cache.get(s);
-    }
-
-    @Override
-    public void delete(String s) {
-        this.cache.delete(s);
-    }
-
-    @Override
-    public void clearAll() {
-        this.cache.clearAll();
-    }
-}
-- 
GitLab