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
33f1cc16
Commit
33f1cc16
authored
Aug 23, 2021
by
Bill Wang
Browse files
update
parent
acb3668f
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 @
33f1cc16
...
...
@@ -62,8 +62,9 @@ public class CursorCacheImpl implements CursorCache {
if
(
provider
.
getLocalMode
()){
if
(
Boolean
.
parseBoolean
(
System
.
getenv
(
"DISABLE_CACHE"
))){
cache
=
new
DummyCache
();
}
else
{
this
.
cache
=
new
VmCache
<>(
expTimeSeconds
,
10
);
}
this
.
cache
=
new
VmCache
<>(
expTimeSeconds
,
10
);
}
else
{
String
host
=
provider
.
getParameterAsStringOrDefault
(
"CACHE_CLUSTER_ENDPOINT"
,
REDIS_SEARCH_HOST
);
int
port
=
Integer
.
parseInt
(
provider
.
getParameterAsStringOrDefault
(
"CACHE_CLUSTER_PORT"
,
REDIS_SEARCH_PORT
));
...
...
provider/search-aws/src/main/java/org/opengroup/osdu/search/provider/aws/cache/FieldTypeMappingCacheImpl.java
View file @
33f1cc16
...
...
@@ -52,8 +52,10 @@ public class FieldTypeMappingCacheImpl implements IFieldTypeMappingCache {
if
(
Boolean
.
parseBoolean
(
System
.
getenv
(
"DISABLE_CACHE"
))){
cache
=
new
DummyCache
();
}
else
{
this
.
cache
=
new
VmCache
<>(
expTimeSeconds
,
10
);
}
this
.
cache
=
new
VmCache
<>(
expTimeSeconds
,
10
);
}
else
{
String
host
=
provider
.
getParameterAsStringOrDefault
(
"CACHE_CLUSTER_ENDPOINT"
,
REDIS_SEARCH_HOST
);
int
port
=
Integer
.
parseInt
(
provider
.
getParameterAsStringOrDefault
(
"CACHE_CLUSTER_PORT"
,
REDIS_SEARCH_PORT
));
...
...
provider/search-aws/src/main/java/org/opengroup/osdu/search/provider/aws/cache/IndexCacheImpl.java
View file @
33f1cc16
...
...
@@ -46,8 +46,9 @@ public class IndexCacheImpl implements IIndexCache<String, Boolean>, AutoCloseab
if
(
provider
.
getLocalMode
()){
if
(
Boolean
.
parseBoolean
(
System
.
getenv
(
"DISABLE_CACHE"
))){
cache
=
new
DummyCache
();
}
else
{
this
.
cache
=
new
VmCache
<>(
expTimeSeconds
,
10
);
}
this
.
cache
=
new
VmCache
<>(
expTimeSeconds
,
10
);
}
else
{
String
host
=
provider
.
getParameterAsStringOrDefault
(
"CACHE_CLUSTER_ENDPOINT"
,
REDIS_SEARCH_HOST
);
int
port
=
Integer
.
parseInt
(
provider
.
getParameterAsStringOrDefault
(
"CACHE_CLUSTER_PORT"
,
REDIS_SEARCH_PORT
));
...
...
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