feat(replay): add ReplayHistoryReader for newest-first list query

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
gamer147
2026-06-10 07:48:18 -04:00
parent 2b6c7bd6a4
commit 86d86f6ead
4 changed files with 62 additions and 0 deletions

View File

@@ -119,6 +119,7 @@ public class Program
builder.Services.AddSingleton<IBattleContextStore, InMemoryBattleContextStore>();
builder.Services.AddScoped<IBattleHistoryWriter, BattleHistoryWriter>();
builder.Services.AddScoped<IReplayHistoryReader, ReplayHistoryReader>();
// Deck-code mint/resolve uses IMemoryCache for ephemeral (3-min TTL) storage; no DB
// row, no migration. Singleton because the cache + RNG seam are process-wide.