6/26/2022

Redis 서버 설치

>> github 

https://github.com/microsoftarchive/redis/releases

 

redis 서버 실행


.\redis-server.exe redis.windows.conf

 

redis 코드 분석. 


>> 자바스프링.

implementation 'org.springframework.boot:spring-boot-starter-data-redis'
 

dev 또는 application.yml 

spring:
  cache:
    redis:
      time-to-live: 86400000 #mills 단위 -> [1초 : 1000] ->   [1일 : 86400000]

  redis:
    port: 6379 #설정한 포트번호
    host: 127.0.0.1

 

@EnableCaching



댓글 없음: