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
Lib
core
OS Core Common
Commits
4bb80941
Commit
4bb80941
authored
Oct 28, 2020
by
Alok Joshi
Browse files
accept database number as parameter to RedisCache
parent
d04266c9
Pipeline
#13239
failed with stage
in 8 seconds
Changes
2
Pipelines
2
Show whitespace changes
Inline
Side-by-side
pom.xml
View file @
4bb80941
...
...
@@ -6,7 +6,7 @@
<groupId>
org.opengroup.osdu
</groupId>
<artifactId>
os-core-common
</artifactId>
<version>
0.3.1
7
</version>
<version>
0.3.1
8
</version>
<packaging>
jar
</packaging>
<properties>
...
...
src/main/java/org/opengroup/osdu/core/common/cache/RedisCache.java
View file @
4bb80941
...
...
@@ -51,14 +51,6 @@ public class RedisCache<K, V> implements ICache<K, V>, AutoCloseable {
expireLengthSeconds
=
expTimeSeconds
;
}
public
RedisCache
(
String
host
,
int
port
,
int
expTimeSeconds
,
Class
<
K
>
classOfK
,
Class
<
V
>
classOfV
)
{
this
(
host
,
port
,
expTimeSeconds
,
0
,
classOfK
,
classOfV
);
}
public
RedisCache
(
String
host
,
int
port
,
String
password
,
int
expTimeSeconds
,
Class
<
K
>
classOfK
,
Class
<
V
>
classOfV
)
{
this
(
host
,
port
,
password
,
expTimeSeconds
,
0
,
classOfK
,
classOfV
);
}
@Override
public
void
put
(
K
key
,
V
value
)
{
SetArgs
args
=
new
SetArgs
();
...
...
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