Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
I
Indexer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OSDU
OSDU Data Platform
System
Indexer
Commits
f56a86fa
Commit
f56a86fa
authored
3 years ago
by
Bill Wang
Browse files
Options
Downloads
Patches
Plain Diff
rename
parent
d403f4fc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!191
EKS Deploy
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
provider/indexer-aws/src/main/java/org/opengroup/osdu/indexer/aws/cache/SchemaCacheImpl.java
+2
-2
2 additions, 2 deletions
...org/opengroup/osdu/indexer/aws/cache/SchemaCacheImpl.java
with
2 additions
and
2 deletions
provider/indexer-aws/src/main/java/org/opengroup/osdu/indexer/aws/cache/SchemaCacheImpl.java
+
2
−
2
View file @
f56a86fa
...
...
@@ -15,7 +15,7 @@
package
org.opengroup.osdu.indexer.aws.cache
;
import
com.fasterxml.jackson.core.JsonProcessingException
;
import
org.opengroup.osdu.core.aws.cache.Aw
sElastic
Cache
;
import
org.opengroup.osdu.core.aws.cache.Aw
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 SchemaCacheImpl implements ISchemaCache<String, String>, AutoClosea
private
ICache
<
String
,
String
>
cache
;
private
Boolean
local
=
false
;
public
SchemaCacheImpl
(
@Value
(
"${aws.elasticache.cluster.schema.expiration}"
)
final
String
SCHEMA_CACHE_EXPIRATION
)
throws
K8sParameterNotFoundException
,
JsonProcessingException
{
cache
=
Aws
Elastic
Cache
.
RedisCache
(
Integer
.
parseInt
(
SCHEMA_CACHE_EXPIRATION
)
*
60
,
String
.
class
,
String
.
class
);
cache
=
Aws
Redis
Cache
.
RedisCache
(
Integer
.
parseInt
(
SCHEMA_CACHE_EXPIRATION
)
*
60
,
String
.
class
,
String
.
class
);
if
(
cache
.
getClass
()
==
RedisCache
.
class
){
local
=
false
;
}
else
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment