Skip to content

Indexer: define cache key ownership and invalidation rules #563

@Otaiki1

Description

@Otaiki1

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

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions