feat: 스팟 체크인 실시간 저장소 Redis 도입 (24h TTL)
CI / build (push) Failing after 13m37s

체크인 시 PostgreSQL(통계용 영구 기록)과 Redis(실시간 활성 체크인)에 함께 저장.
활성 메이트 조회를 Redis ZSet(member=dogId, score=체크인시각, 24h TTL)에서
최근 24시간·최신순으로 수행. Postgres 는 이벤트마다 누적(통계).

- CheckInRedisStore: ZSet + 24h 키 TTL, 조회 시 만료 정리
- application.yml: spring.data.redis (env 주입, 기본 localhost:6379)
- Redis 미기동 시에도 컨텍스트 로드(Lettuce 지연연결) → CI/테스트 안전

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
sb
2026-07-11 13:26:30 +09:00
parent 6da7339626
commit 8d3be8493c
5 changed files with 91 additions and 7 deletions
+3
View File
@@ -25,6 +25,9 @@ dependencies {
// 실시간 인앱 채팅 (STOMP over WebSocket)
implementation 'org.springframework.boot:spring-boot-starter-websocket'
// 실시간 스팟 체크인(24h TTL) — 활성 메이트 조회. 통계는 PostgreSQL.
implementation 'org.springframework.boot:spring-boot-starter-data-redis'
// PostGIS / 공간 데이터 (스팟 위경도 좌표)
implementation 'org.hibernate.orm:hibernate-spatial'