Skip to content

Commit 34893e4

Browse files
committed
Merge branch 'redis-support' of https://github.com/picoded/JavaCommons-dstack into redis-support
2 parents 734aac2 + ba5858d commit 34893e4

3 files changed

Lines changed: 28 additions & 13 deletions

File tree

src/main/java/picoded/dstack/redis/Redis_DataObjectMap.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,6 @@
3030
import org.redisson.codec.JsonJacksonCodec;
3131
import org.redisson.api.RedissonClient;
3232
import org.redisson.api.RMap;
33-
import org.redisson.api.RKeys;
34-
35-
// Jackson library used
36-
import com.fasterxml.jackson.core.JsonParser;
37-
import com.fasterxml.jackson.databind.ObjectMapper;
38-
import com.fasterxml.jackson.core.util.DefaultPrettyPrinter;
39-
import com.fasterxml.jackson.core.util.DefaultIndenter;
40-
import com.fasterxml.jackson.databind.MapperFeature;
41-
42-
import org.hjson.*;
43-
4433

4534
/**
4635
* Redis implementation of DataObjectMap data structure.

src/test/java/picoded/dstack/redis/Redis_KeyLongMap_test.java

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,23 @@
66

77
import java.util.concurrent.ThreadLocalRandom;
88

9+
<<<<<<< HEAD
910
public class Redis_KeyLongMap_test extends StructSimple_KeyLongMap_test {
11+
=======
12+
public class RedisKeyLongMap_test extends StructSimple_KeyLongMap_test {
13+
>>>>>>> ba5858da6960b26e62926ee51c1e3f547b58774f
1014
// Redis stack instance
1115
protected static volatile RedisStack instance = null;
1216

1317
/// Implementation constructor
1418
public KeyLongMap implementationConstructor() {
1519

1620
// Initialize server
21+
<<<<<<< HEAD
1722
synchronized (Redis_KeyLongMap_test.class) {
23+
=======
24+
synchronized (RedisKeyLongMap_test.class) {
25+
>>>>>>> ba5858da6960b26e62926ee51c1e3f547b58774f
1826
if (instance == null) {
1927
// The default config uses "172.17.0.1" (default docker bridge address)
2028
// and port 6379 (default redis port)
@@ -34,6 +42,12 @@ public KeyLongMap implementationConstructor() {
3442
}
3543
}
3644
// Load the KeyLongMap
45+
<<<<<<< HEAD
3746
return instance.keyLongMap(DStackTestConfig.randomTablePrefix());
3847
}
39-
}
48+
}
49+
=======
50+
return instance.KeyLongMap(DStackTestConfig.randomTablePrefix());
51+
}
52+
}
53+
>>>>>>> ba5858da6960b26e62926ee51c1e3f547b58774f

src/test/java/picoded/dstack/redis/Redis_KeyValueMap_test.java

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,23 @@
77
import java.util.concurrent.ThreadLocalRandom;
88

99

10+
<<<<<<< HEAD
1011
public class Redis_KeyValueMap_test extends StructSimple_KeyValueMap_test {
12+
=======
13+
public class RedisKeyValueMap_test extends StructSimple_KeyValueMap_test {
14+
>>>>>>> ba5858da6960b26e62926ee51c1e3f547b58774f
1115
// Redis stack instance
1216
protected static volatile RedisStack instance = null;
1317

1418
/// Implementation constructor
1519
public KeyValueMap implementationConstructor() {
1620

1721
// Initialize server
22+
<<<<<<< HEAD
1823
synchronized (Redis_KeyValueMap_test.class) {
24+
=======
25+
synchronized (RedisKeyValueMap_test.class) {
26+
>>>>>>> ba5858da6960b26e62926ee51c1e3f547b58774f
1927
if (instance == null) {
2028
// The default config uses "172.17.0.1" (default docker bridge address)
2129
// and port 6379 (default redis port)
@@ -37,4 +45,8 @@ public KeyValueMap implementationConstructor() {
3745
// Load the KeyValueMap
3846
return instance.keyValueMap(DStackTestConfig.randomTablePrefix());
3947
}
40-
}
48+
<<<<<<< HEAD
49+
}
50+
=======
51+
}
52+
>>>>>>> ba5858da6960b26e62926ee51c1e3f547b58774f

0 commit comments

Comments
 (0)