Skip to content

Commit

Permalink
⚙️:: 진짜 됨
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyoil2 committed Jul 17, 2024
1 parent 17bd628 commit b0c7e78
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/main/kotlin/scul/projectscul/global/redis/RedisConfig.kt
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,11 @@ class RedisConfig(
@Value("\${spring.data.redis.port}")
private val redisPort: Int,

@Value("\${spring.data.redis.password}")
private val redisPassword: String

) {
@Bean
fun redisConnectionFactory(): RedisConnectionFactory {
val redisConfig = RedisStandaloneConfiguration(redisHost, redisPort)

if (redisPassword.isNotBlank()) {
redisConfig.setPassword(redisPassword)
}

return LettuceConnectionFactory(redisConfig)
}

Expand Down

0 comments on commit b0c7e78

Please sign in to comment.