Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Open Subsurface Data Universe Software
Platform
System
Search
Commits
dd125ab2
Commit
dd125ab2
authored
Aug 23, 2021
by
Bill Wang
Browse files
rename
parent
f361268f
Changes
3
Hide whitespace changes
Inline
Side-by-side
provider/search-aws/src/main/java/org/opengroup/osdu/search/provider/aws/cache/CursorCacheImpl.java
View file @
dd125ab2
...
...
@@ -15,7 +15,7 @@
package
org.opengroup.osdu.search.provider.aws.cache
;
import
com.fasterxml.jackson.core.JsonProcessingException
;
import
org.opengroup.osdu.core.aws.cache.Aws
Elastic
Cache
;
import
org.opengroup.osdu.core.aws.cache.Aws
Redis
Cache
;
import
org.opengroup.osdu.core.aws.ssm.K8sParameterNotFoundException
;
import
org.opengroup.osdu.core.common.cache.ICache
;
import
org.opengroup.osdu.core.common.cache.RedisCache
;
...
...
@@ -44,7 +44,7 @@ public class CursorCacheImpl implements CursorCache {
* @param INDEX_CACHE_EXPIRATION - the expiration time for the Cursor Cache Redis cluster.
*/
public
CursorCacheImpl
(
@Value
(
"${aws.elasticache.cluster.cursor.expiration}"
)
final
String
INDEX_CACHE_EXPIRATION
)
throws
K8sParameterNotFoundException
,
JsonProcessingException
{
cache
=
Aws
Elastic
Cache
.
RedisCache
(
Integer
.
parseInt
(
INDEX_CACHE_EXPIRATION
)
*
60
,
String
.
class
,
CursorSettings
.
class
);
cache
=
Aws
Redis
Cache
.
RedisCache
(
Integer
.
parseInt
(
INDEX_CACHE_EXPIRATION
)
*
60
,
String
.
class
,
CursorSettings
.
class
);
local
=
cache
.
getClass
()
!=
RedisCache
.
class
;
}
...
...
provider/search-aws/src/main/java/org/opengroup/osdu/search/provider/aws/cache/FieldTypeMappingCacheImpl.java
View file @
dd125ab2
...
...
@@ -15,7 +15,7 @@
package
org.opengroup.osdu.search.provider.aws.cache
;
import
com.fasterxml.jackson.core.JsonProcessingException
;
import
org.opengroup.osdu.core.aws.cache.Aws
Elastic
Cache
;
import
org.opengroup.osdu.core.aws.cache.Aws
Redis
Cache
;
import
org.opengroup.osdu.core.aws.ssm.K8sParameterNotFoundException
;
import
org.opengroup.osdu.core.common.cache.ICache
;
import
org.opengroup.osdu.core.common.cache.RedisCache
;
...
...
@@ -36,7 +36,7 @@ public class FieldTypeMappingCacheImpl implements IFieldTypeMappingCache {
*
*/
public
FieldTypeMappingCacheImpl
(
@Value
(
"${aws.elasticache.cluster.cursor.expiration}"
)
final
String
INDEX_CACHE_EXPIRATION
)
throws
K8sParameterNotFoundException
,
JsonProcessingException
{
cache
=
Aws
Elastic
Cache
.
RedisCache
(
Integer
.
parseInt
(
INDEX_CACHE_EXPIRATION
)
*
60
,
String
.
class
,
Map
.
class
);
cache
=
Aws
Redis
Cache
.
RedisCache
(
Integer
.
parseInt
(
INDEX_CACHE_EXPIRATION
)
*
60
,
String
.
class
,
Map
.
class
);
local
=
cache
.
getClass
()
!=
RedisCache
.
class
;
}
...
...
provider/search-aws/src/main/java/org/opengroup/osdu/search/provider/aws/cache/IndexCacheImpl.java
View file @
dd125ab2
...
...
@@ -15,7 +15,7 @@
package
org.opengroup.osdu.search.provider.aws.cache
;
import
com.fasterxml.jackson.core.JsonProcessingException
;
import
org.opengroup.osdu.core.aws.cache.Aws
Elastic
Cache
;
import
org.opengroup.osdu.core.aws.cache.Aws
Redis
Cache
;
import
org.opengroup.osdu.core.aws.ssm.K8sParameterNotFoundException
;
import
org.opengroup.osdu.core.common.cache.ICache
;
import
org.opengroup.osdu.core.common.cache.RedisCache
;
...
...
@@ -29,7 +29,7 @@ public class IndexCacheImpl implements IIndexCache<String, Boolean>, AutoCloseab
private
ICache
<
String
,
Boolean
>
cache
;
private
Boolean
local
;
public
IndexCacheImpl
(
@Value
(
"${aws.elasticache.cluster.index.expiration}"
)
final
String
INDEX_CACHE_EXPIRATION
)
throws
K8sParameterNotFoundException
,
JsonProcessingException
{
cache
=
cache
=
Aws
Elastic
Cache
.
RedisCache
(
Integer
.
parseInt
(
INDEX_CACHE_EXPIRATION
)
*
60
,
String
.
class
,
Boolean
.
class
);
cache
=
cache
=
Aws
Redis
Cache
.
RedisCache
(
Integer
.
parseInt
(
INDEX_CACHE_EXPIRATION
)
*
60
,
String
.
class
,
Boolean
.
class
);
local
=
cache
.
getClass
()
!=
RedisCache
.
class
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment