Title: [Repository] Implement centralised cache invalidation service
Tags: backend, repository, feature
Description:
Centralised service to invalidate Redis cache keys when underlying data changes, preventing stale reads.
Acceptance Criteria:
File: src/services/cache.service.ts
Title:
[Repository] Implement centralised cache invalidation serviceTags:
backend,repository,featureDescription:
Centralised service to invalidate Redis cache keys when underlying data changes, preventing stale reads.
Acceptance Criteria:
cache.service.tsexposes:get,set,del,delPattern,getOrSet.delPattern('market:*')purges all market cache entries using RedisSCAN.market:{id},leaderboard:global:*,user:{id}:balance.market.service.ts,wallet.service.ts,leaderboard.service.ts, the relevant cache keys are invalidated.File:
src/services/cache.service.ts