HAN STORY

  • 홈
  • 태그
  • 방명록

컴퓨터 프로그래밍/Redis 2

[Redis] 데이터를 DB 에서 조회하는 것과 캐시 에서 조회하는 것의 차이

// 인기 카드 Top3 조회 ( Redis )@Transactional(readOnly = true)public Map getTopViewCardList() { Set> topCardsWithScores = redisTemplate.opsForZSet().reverseRangeWithScores(TODAY_RANKING_KEY, 0, 2); return topCardsWithScores.stream() .collect(Collectors.toMap( tuple -> tuple.getValue().toString(), // title tuple -> tuple.getScore().int..

컴퓨터 프로그래밍/Redis 2024.10.20

[Redis] SpringBoot 에 Redis 초기 세팅 코드

build.gradle// redisimplementation 'org.springframework.boot:spring-boot-starter-data-redis' 의존성 주입RedisConfigpackage com.sparta.springusersetting.config;import org.springframework.context.annotation.Bean;import org.springframework.context.annotation.Configuration;import org.springframework.data.redis.connection.RedisConnectionFactory;import org.springframework.data.redis.core.RedisTemplate;impo..

컴퓨터 프로그래밍/Redis 2024.10.16
이전
1
다음
더보기
프로필사진

HAN STORY

  • 분류 전체보기 (300)
    • Project (102)
      • 트렌드 매거진 (4)
      • 축구모임 홈페이지개발 (68)
      • 싹틔움 (29)
    • 컴퓨터 프로그래밍 (158)
      • Spring (46)
      • Java (19)
      • Node.js (20)
      • FastAPI (6)
      • React Native (4)
      • Vue.js (9)
      • Next.js (7)
      • Javascript (1)
      • Git (7)
      • 알고리즘 (10)
      • 반응형 웹 디자인 (2)
      • Docker (2)
      • Redis (2)
      • Kafka (0)
      • Firebase (2)
      • CS (14)
      • Memo (7)
    • 클라우드 (20)
      • AWS (20)
    • 데이터베이스 (2)
      • SQL (2)
    • 전자회로 (15)
      • 전자회로 부품 (13)
      • Allegro PCB 설계 (0)
      • 회로 설계 (2)

Tag

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/05   »
일 월 화 수 목 금 토
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

  • youtube

티스토리툴바