이번 장에서는 Spring2.0의 주요 feature중 하나인 reactor(reactive)가 spring-data-redis에 어떻게 적용되어 있는지 실습을 통해 확인해 보겠습니다.
redis에서 reactive를 사용하면 대용량의 요청을 처리할때 non block으로 처리하므로...
이번장에서는 spring-data-redis를 이용하여 SpringBoot와 redis를 연동하고, Boot에서 제공하는 Cache 어노테이션을 사용하여 캐시를 처리하는 방법에 대해 실습하겠습니다.
builld.gradle
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
...
SpringBoot2와 redis cluster를 연동하고, redis command에 대해 설명합니다. 다음을 참고하여 프로젝트를 하나 생성합니다.>> Intellij Community 프로젝트생성
Boot를 실행하기 위한 Application Class 생성
package com.redis.cluster;
@SpringBootApplication
public class RedisClusterApplication...