Commit 4bb80941 authored by Alok Joshi's avatar Alok Joshi
Browse files

accept database number as parameter to RedisCache

parent d04266c9
Pipeline #13239 failed with stage
in 8 seconds
......@@ -6,7 +6,7 @@
<groupId>org.opengroup.osdu</groupId>
<artifactId>os-core-common</artifactId>
<version>0.3.17</version>
<version>0.3.18</version>
<packaging>jar</packaging>
<properties>
......
......@@ -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();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment