Skip to content

Commit

Permalink
PLT-541: make redis client singleton
Browse files Browse the repository at this point in the history
  • Loading branch information
n5nk committed Jan 3, 2024
1 parent 25e8901 commit 98a41d4
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ public static RedissonClient getRedissonClient(Configuration configuration) {
.setCheckSentinelsList(false)
.setConnectTimeout(connectTimeout)
.setIdleConnectionTimeout(5_000)
.setMasterConnectionMinimumIdleSize(10)
.setMasterConnectionPoolSize(20)
.setSlaveConnectionMinimumIdleSize(10)
.setSlaveConnectionPoolSize(20)
.setKeepAlive(keepAlive)
.setMasterName(configuration.get(REDIS_CACHE_MASTER_NAME))
.addSentinelAddress(formatUrls(configuration.get(REDIS_CACHE_SENTINEL_URLS).split(COMMA)))
Expand Down

0 comments on commit 98a41d4

Please sign in to comment.