File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
src/main/kotlin/com/msg/gauth/global/redis Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import org.springframework.cache.CacheManager
4
4
import org.springframework.cache.annotation.EnableCaching
5
5
import org.springframework.context.annotation.Bean
6
6
import org.springframework.context.annotation.Configuration
7
+ import org.springframework.context.annotation.Primary
7
8
import org.springframework.data.redis.cache.RedisCacheConfiguration
8
9
import org.springframework.data.redis.cache.RedisCacheManager
9
10
import org.springframework.data.redis.connection.RedisConnectionFactory
@@ -17,6 +18,7 @@ import java.time.Duration
17
18
class RedisCacheConfig {
18
19
19
20
@Bean
21
+ @Primary
20
22
fun clientCacheManager (factory : RedisConnectionFactory ? ): CacheManager {
21
23
val cacheConfig = RedisCacheConfiguration .defaultCacheConfig()
22
24
.serializeKeysWith(RedisSerializationContext .SerializationPair .fromSerializer(StringRedisSerializer ()))
You can’t perform that action at this time.
0 commit comments