springboot + redis @Cacheable 사용
·
개발/java
redis @cacheable를 써보자 환경은 다음과 같다 springboot 2.7.18 jdk 11.0.21 잘 변하지 않는 데이터에 대해서 @Cacheable을 통해 DB , API호출이나 로직 수행을 하지 않고, redis cache에 저장된 값으로 즉각적으로 응답을 줄 수 있다. springboot redis 기본 구성은 이전 게시물을 참조하자 https://fullmooney.tistory.com/27 springboot + redis 사용하기 redis를 써보자 환경은 다음과 같다 springboot 2.7.18 jdk 11.0.21 먼저 pom 에 dependency를 추가한다. org.springframework.boot spring-boot-starter-data-redis io.let..