[Feature] Redis 토큰 캐시 관리 #154

Closed
opened 2026-02-11 01:37:49 +00:00 by seonkyu.kim · 0 comments
Owner

설명

디바이스 토큰을 Redis에 캐싱하여 Push 발송 시 DB 조회를 최소화한다.

체크리스트

  • SPMS.Application/Interfaces/ITokenCacheService.cs — 인터페이스 정의
  • SPMS.Infrastructure/Caching/TokenCacheService.cs — Redis 기반 구현
    • Key: device:token:{serviceId}:{deviceId}
    • TTL: 1시간
    • GetDeviceInfoAsync / SetDeviceInfoAsync / InvalidateAsync / InvalidateByServiceAsync
  • SPMS.Infrastructure/DependencyInjection.cs — DI 등록
  • SPMS.Infrastructure/Workers/PushWorker.cs — single 발송 시 캐시 우선 조회
  • SPMS.Application/Services/DeviceService.cs — 등록/삭제 시 캐시 무효화
  • 빌드 성공 확인
## 설명 디바이스 토큰을 Redis에 캐싱하여 Push 발송 시 DB 조회를 최소화한다. ## 체크리스트 - [x] `SPMS.Application/Interfaces/ITokenCacheService.cs` — 인터페이스 정의 - [x] `SPMS.Infrastructure/Caching/TokenCacheService.cs` — Redis 기반 구현 - Key: `device:token:{serviceId}:{deviceId}` - TTL: 1시간 - GetDeviceInfoAsync / SetDeviceInfoAsync / InvalidateAsync / InvalidateByServiceAsync - [x] `SPMS.Infrastructure/DependencyInjection.cs` — DI 등록 - [x] `SPMS.Infrastructure/Workers/PushWorker.cs` — single 발송 시 캐시 우선 조회 - [x] `SPMS.Application/Services/DeviceService.cs` — 등록/삭제 시 캐시 무효화 - [x] 빌드 성공 확인
seonkyu.kim added the
Priority
Medium
Status
Available
Type
Feature
labels 2026-02-11 01:38:00 +00:00
seonkyu.kim added this to the Phase 3-2: 통계 & Webhook & 배치 milestone 2026-02-11 01:38:05 +00:00
seonkyu.kim self-assigned this 2026-02-11 01:38:08 +00:00
seonkyu.kim added
Status
Done
and removed
Status
Available
labels 2026-02-11 01:46:13 +00:00
Sign in to join this conversation.
No description provided.