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
Storage
Commits
ad1c43f4
Commit
ad1c43f4
authored
Oct 28, 2020
by
Alok Joshi
Browse files
add database number to RedisCache call
parent
e828d236
Pipeline
#13252
failed with stage
in 41 seconds
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
devops/azure/chart/templates/deployment.yaml
View file @
ad1c43f4
...
...
@@ -63,6 +63,11 @@ spec:
configMapKeyRef
:
name
:
osdu-svc-properties
key
:
ENV_KEYVAULT
-
name
:
REDIS_DATABASE
valueFrom
:
configMapKeyRef
:
name
:
redis-configmap
key
:
storage
-
name
:
AZURE_CLIENT_ID
valueFrom
:
secretKeyRef
:
...
...
provider/storage-azure/src/main/java/org/opengroup/osdu/storage/provider/azure/cache/SchemaRedisCache.java
View file @
ad1c43f4
...
...
@@ -16,6 +16,7 @@ package org.opengroup.osdu.storage.provider.azure.cache;
import
org.opengroup.osdu.core.common.cache.RedisCache
;
import
org.opengroup.osdu.core.common.model.storage.Schema
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnProperty
;
import
org.springframework.stereotype.Component
;
...
...
@@ -29,8 +30,9 @@ public class SchemaRedisCache extends RedisCache<String, Schema> {
final
@Named
(
"REDIS_HOST"
)
String
host
,
final
@Named
(
"REDIS_PORT"
)
int
port
,
final
@Named
(
"REDIS_PASSWORD"
)
String
password
,
final
@Named
(
"REDIS_TIMEOUT"
)
int
timeout
)
final
@Named
(
"REDIS_TIMEOUT"
)
int
timeout
,
@Value
(
"${redis.database}"
)
final
int
database
)
{
super
(
host
,
port
,
password
,
timeout
,
String
.
class
,
Schema
.
class
);
super
(
host
,
port
,
password
,
timeout
,
database
,
String
.
class
,
Schema
.
class
);
}
}
\ No newline at end of file
provider/storage-azure/src/main/resources/application.properties
View file @
ad1c43f4
...
...
@@ -63,4 +63,7 @@ azure.cosmosdb.recordmetadata.collection=StorageRecord
azure.cosmosdb.tenantinfo.collection
=
TenantInfo
#TenantFactory Configuration
tenantFactoryImpl.required
=
true
\ No newline at end of file
tenantFactoryImpl.required
=
true
#Redis database number
redis.database
=
${REDIS_DATABASE}
\ 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