[Feat] Redis 캐싱 기능 도입 및 유튜브 검색 API 최적화 #18
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🚀 구현한 내용 (What was implemented)
@nestjs-modules/ioredis,ioredis를 사용하여 Redis 캐싱 기능을 프로젝트에 도입.redis.service.spec.ts):.env파일을 통해 Redis 호스트, 포트, 비밀번호 등을 설정 가능.🤔 논의가 필요한 사항 (Points to discuss)
🖼️ 결과 이미지 (Screenshots)
🛠️ 추가 수정 필요 사항 (Additional fixes required)
📝 참고 사항 (Additional notes)
테스트 방법:
.env파일에 Redis 환경변수 설정: (DM 전달)Redis 서버 실행:
docker run -p 6379:6379 redisnpm run test -- src/redis/redis.service.spec.ts명령어로 Redis 서비스 테스트 실행.Swagger를 통해
/videos/searchAPI 테스트.참고 자료: