본문 바로가기

공부 기록/영상 후기

스프링 부트 2.0 Day 31. Redis 사용하기

https://www.youtube.com/live/7kpjnBsmuvg?feature=share 

https://hub.docker.com/_/redis/

 

redis - Official Image | Docker Hub

Quick reference Supported tags and respective Dockerfile links 7.2-rc2, 7.2-rc, 7.2-rc2-bullseye, 7.2-rc-bullseye 7.2-rc2-alpine, 7.2-rc-alpine, 7.2-rc2-alpine3.18, 7.2-rc-alpine3.18 7.0.11, 7.0, 7, latest, 7.0.11-bullseye, 7.0-bullseye, 7-bullseye, bullse

hub.docker.com

https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#data.nosql.redis

 

Spring Boot Reference Documentation

This section goes into more detail about how you should use Spring Boot. It covers topics such as build systems, auto-configuration, and how to run your applications. We also cover some Spring Boot best practices. Although there is nothing particularly spe

docs.spring.io

https://spring.io/projects/spring-data-redis

 

Spring Data Redis

Spring Data Redis, part of the larger Spring Data family, provides easy configuration and access to Redis from Spring applications. It offers both low-level and high-level abstractions for interacting with the store, freeing the user from infrastructural c

spring.io


레디스는 캐시, 메시지 브로커, 다양한 기능을 가진 키-밸류 저장소다.

기본 포트는 6379

 

의존성 추가

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

 

도커로 실행하기

docker run -p 6379:6379 --name redis -d redis