| Redis Key | Value | 설명 |
|---|---|---|
battle:${battleId} |
interface Battle |
특정 배틀에 대한 데이터 관리 |
battle:room:${roomId} |
battleId | 특정 방에 대한 연결된 배틀 |
matching:active_battles |
set 자료구조 (battleId 목록들) | 현재 배틀이 진행중인 배틀 ID 목록 |
| Redis Key | Value | 설명 |
|---|---|---|
matching:queue |
ZSET (score = timestamp, | |
| value = userId) | 매칭 중인 인원을 큐에 저장 | |
matching:user:${userId} |
HSET (interface MatchingUser) |
매칭 대기 사용자 정보 |
matching:recent_wait_times |
List (avgWaitTime[]) | 최근 매칭된 인원의 대기 시간 저장 |