Build location
Work primarily in indexer/src/cache/cache.service.ts. Keep related tests/docs beside that package unless this issue explicitly calls for a cross-package update.
Why this matters
Redis cache keys should be discoverable and safely invalidated when raffles, leaderboards, stats, or users change.
What to build
- Create typed cache key helpers.
- Map handler writes to cache invalidation events.
- Add TTL policy per data category.
Acceptance criteria
- Cache tests cover key construction and invalidation after purchase/finalize.
- No service manually concatenates cache keys outside helper module.
Suggested verification
cd indexer && npm run lint && npm run test && npm run build
Build location
Work primarily in
indexer/src/cache/cache.service.ts. Keep related tests/docs beside that package unless this issue explicitly calls for a cross-package update.Why this matters
Redis cache keys should be discoverable and safely invalidated when raffles, leaderboards, stats, or users change.
What to build
Acceptance criteria
Suggested verification
cd indexer && npm run lint && npm run test && npm run build