Skip to content

Commit

Permalink
Merge branch 'main' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
jwnnoh authored Jan 3, 2025
2 parents 4467470 + f536e29 commit 45391d8
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,14 @@ public class RedissonConfig {
private static final String REDISSON_HOST_PREFIX = "rediss://";
private static final String REDISSON_PRIMARY_PREFIX = "gachontable-001.";
private static final String REDISSON_REPLICA_1_PREFIX = "gachontable-002.";
private static final String REDISSON_REPLICA_2_PREFIX = "gachontable-003.";
private static final String REDISSON_REPLICA_3_PREFIX = "gachontable-004.";

@Bean
public RedissonClient redissonClient() {
Config config = new Config();
config.useReplicatedServers()
.addNodeAddress(
REDISSON_HOST_PREFIX + REDISSON_PRIMARY_PREFIX + redisHost + ":" + redisPort + "/" + redisDatabase,
REDISSON_HOST_PREFIX + REDISSON_REPLICA_1_PREFIX + redisHost + ":" + redisPort + "/" + redisDatabase,
REDISSON_HOST_PREFIX + REDISSON_REPLICA_2_PREFIX + redisHost + ":" + redisPort + "/" + redisDatabase,
REDISSON_HOST_PREFIX + REDISSON_REPLICA_3_PREFIX + redisHost + ":" + redisPort + "/" + redisDatabase
REDISSON_HOST_PREFIX + REDISSON_REPLICA_1_PREFIX + redisHost + ":" + redisPort + "/" + redisDatabase
)
.setPassword(redisPassword);
return Redisson.create(config);
Expand Down
3 changes: 0 additions & 3 deletions src/main/resources/application-dev.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
server:
port: 8080

spring:
datasource:
master:
Expand Down
3 changes: 0 additions & 3 deletions src/main/resources/application-prod.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
server:
port: 8080

spring:
datasource:
master:
Expand Down

0 comments on commit 45391d8

Please sign in to comment.