Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
rudeh2926 committed Feb 5, 2024
1 parent 813e4b0 commit 97545b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,15 @@ import org.springframework.data.redis.connection.lettuce.LettuceConnectionFactor
import org.springframework.data.redis.core.RedisKeyValueAdapter
import org.springframework.data.redis.repository.configuration.EnableRedisRepositories


@EnableRedisRepositories(
enableKeyspaceEvents = RedisKeyValueAdapter.EnableKeyspaceEvents.ON_STARTUP,
keyspaceNotificationsConfigParameter = "" // Elastic Cache는 CONFIG 명령어를 허용하지 않는 이슈
keyspaceNotificationsConfigParameter = ""
)
@Configuration
class RedisConfig (
class RedisConfig(
private val properties: RedisProperties
) {

@Bean
fun redisConnectionFactory(): RedisConnectionFactory = LettuceConnectionFactory(properties.host, properties.port)

}
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ package dsm.pick2024.global.security.jwt.entity.repository
import dsm.pick2024.global.security.jwt.entity.RefreshToken
import org.springframework.data.repository.CrudRepository

interface RefreshTokenRepository : CrudRepository<RefreshToken, Long>
interface RefreshTokenRepository : CrudRepository<RefreshToken, String>

0 comments on commit 97545b5

Please sign in to comment.