Move long wait cache to super tenant
@@ -22,6 +22,8 @@ import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.wso2.carbon.identity.core.cache.BaseCache;
+import static org.wso2.carbon.utils.multitenancy.MultitenantConstants.SUPER_TENANT_DOMAIN_NAME;
+
public class LongWaitResultCache extends BaseCache<LongWaitResultCacheKey, LongWaitResultCacheEntry> {
private static final String LONG_WAIT_RESULT_CACHE_NAME = "LongWaitResultCache";
@@ -42,18 +44,18 @@ public class LongWaitResultCache extends BaseCache<LongWaitResultCacheKey, LongW
@Override
public void addToCache(LongWaitResultCacheKey key, LongWaitResultCacheEntry entry) {
- super.addToCache(key, entry);
+ super.addToCache(key, entry, SUPER_TENANT_DOMAIN_NAME);
}
@Override
public LongWaitResultCacheEntry getValueFromCache(LongWaitResultCacheKey key) {
- return super.getValueFromCache(key);
+ return super.getValueFromCache(key, SUPER_TENANT_DOMAIN_NAME);
}
@Override
public void clearCacheEntry(LongWaitResultCacheKey key) {
- super.clearCacheEntry(key);
+ super.clearCacheEntry(key, SUPER_TENANT_DOMAIN_NAME);
}
}
