Skip to content
GitLab
Menu
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
Partition
Commits
9a316525
Commit
9a316525
authored
Aug 26, 2021
by
Bill Wang
Browse files
update on cache autowire injection
parent
e287f757
Changes
2
Hide whitespace changes
Inline
Side-by-side
provider/partition-aws/src/main/java/org/opengroup/osdu/partition/provider/aws/cache/GroupCache.java
View file @
9a316525
...
@@ -33,11 +33,11 @@ import java.util.Map;
...
@@ -33,11 +33,11 @@ import java.util.Map;
@Component
@Component
public
class
GroupCache
{
public
class
GroupCache
{
@Value
(
"${aws.elasticache.cluster.endpoint
:null
}"
)
@Value
(
"${aws.elasticache.cluster.endpoint}"
)
String
REDIS_SEARCH_HOST
;
String
REDIS_SEARCH_HOST
;
@Value
(
"${aws.elasticache.cluster.port
:null
}"
)
@Value
(
"${aws.elasticache.cluster.port}"
)
String
REDIS_SEARCH_PORT
;
String
REDIS_SEARCH_PORT
;
@Value
(
"${aws.elasticache.cluster.key
:null
}"
)
@Value
(
"${aws.elasticache.cluster.key}"
)
String
REDIS_SEARCH_KEY
;
String
REDIS_SEARCH_KEY
;
public
ICache
<
String
,
Groups
>
GetGroupCache
()
throws
K8sParameterNotFoundException
,
JsonProcessingException
{
public
ICache
<
String
,
Groups
>
GetGroupCache
()
throws
K8sParameterNotFoundException
,
JsonProcessingException
{
K8sLocalParameterProvider
provider
=
new
K8sLocalParameterProvider
();
K8sLocalParameterProvider
provider
=
new
K8sLocalParameterProvider
();
...
...
provider/partition-aws/src/main/resources/application.properties
View file @
9a316525
...
@@ -45,6 +45,6 @@ server.ssl.key-store-password=${SSL_KEY_STORE_PASSWORD:}
...
@@ -45,6 +45,6 @@ server.ssl.key-store-password=${SSL_KEY_STORE_PASSWORD:}
spring.autoconfigure.exclude
=
org.springframework.boot.autoconfigure.security.SecurityAutoConfiguration
spring.autoconfigure.exclude
=
org.springframework.boot.autoconfigure.security.SecurityAutoConfiguration
## AWS ElastiCache configuration
## AWS ElastiCache configuration
aws.elasticache.cluster.endpoint
=
${CACHE_CLUSTER_ENDPOINT}
aws.elasticache.cluster.endpoint
=
${CACHE_CLUSTER_ENDPOINT:null}
aws.elasticache.cluster.port
=
${CACHE_CLUSTER_PORT}
aws.elasticache.cluster.port
=
${CACHE_CLUSTER_PORT:null}
aws.elasticache.cluster.key
=
${CACHE_CLUSTER_KEY}
aws.elasticache.cluster.key
=
${CACHE_CLUSTER_KEY:null}
\ No newline at end of file
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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