728x90
github 링크 : https://github.com/armyost/RedisCacheableVariousTimes
GitHub - armyost/RedisCacheableVariousTimes: This project gives various duraton option for cache
This project gives various duraton option for cache - GitHub - armyost/RedisCacheableVariousTimes: This project gives various duraton option for cache
github.com
예를들어 어떤 기능은 1Day, 다른 기능은 1Hour로 Cache 세팅을 하고자 한다면 CacheName별로 다른 Configuration을 주고 CacheManager를 생성하면 된다.
아래 처럼 1Day, 1Hour 단위의 TTL을 갖도록 할 수 있다.
'Programming > Java' 카테고리의 다른 글
Write-Back, Read-Through 를 위한 샘플 (0) | 2023.11.06 |
---|---|
JAVA ) EventStream 을 이용한 Hexagonal Sample (0) | 2023.11.01 |
JPA 사용법 (0) | 2023.10.11 |
SpringSecurity로 OAuth 인증인가 구현. Kakao 소셜인증을 서버로.. (0) | 2023.09.12 |
Spring Security Filter Chain 설명 (0) | 2023.09.06 |