Skip to content
Snippets Groups Projects
Commit 6062fc6a authored by Zhibin Mai's avatar Zhibin Mai Committed by Chad Leong
Browse files

Remove unnecessary annotation

(cherry picked from commit 8cffa975)
parent 305f5477
No related branches found
No related tags found
1 merge request!582Cherry-pick 'Implement Redis cache in Azure for two kinds of object caches that are...' into release/0.22
......@@ -18,7 +18,6 @@ package org.opengroup.osdu.indexer.azure.cache;
import org.opengroup.osdu.core.common.cache.RedisCache;
import org.opengroup.osdu.indexer.cache.IRecordChangeInfoCache;
import org.opengroup.osdu.indexer.model.RecordChangeInfo;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.stereotype.Component;
......@@ -32,7 +31,7 @@ public class RecordChangeInfoRedisCache extends RedisCache<String, RecordChangeI
final @Named("REDIS_PORT") int port,
final @Named("REDIS_PASSWORD") String password,
final @Named("RECORDS_REDIS_TTL") int timeout,
@Qualifier("") @Value("${redis.database}") final int database) {
@Value("${redis.database}") final int database) {
super(host, port, password, timeout, database, String.class, RecordChangeInfo.class);
}
}
......@@ -18,7 +18,6 @@ package org.opengroup.osdu.indexer.azure.cache;
import org.opengroup.osdu.core.common.cache.RedisCache;
import org.opengroup.osdu.core.common.model.storage.RecordData;
import org.opengroup.osdu.indexer.cache.IRelatedObjectCache;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.stereotype.Component;
......@@ -32,7 +31,7 @@ public class RelatedObjectRedisCache extends RedisCache<String, RecordData> imp
final @Named("REDIS_PORT") int port,
final @Named("REDIS_PASSWORD") String password,
final @Named("RECORDS_REDIS_TTL") int timeout,
@Qualifier("") @Value("${redis.database}") final int database) {
@Value("${redis.database}") final int database) {
super(host, port, password, timeout, database, String.class, RecordData.class);
}
}
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