Skip to content

[#410] Add Redis caching layer for raffle metadata reads - #456

Merged
Otaiki1 merged 2 commits into
crackedstudio:masterfrom
yinkscss:fix/410-add-redis-caching-layer-for-raffle-metadata-reads
Apr 29, 2026
Merged

[#410] Add Redis caching layer for raffle metadata reads#456
Otaiki1 merged 2 commits into
crackedstudio:masterfrom
yinkscss:fix/410-add-redis-caching-layer-for-raffle-metadata-reads

Conversation

@yinkscss

@yinkscss yinkscss commented Apr 28, 2026

Copy link
Copy Markdown
Contributor

Closes #410

Summary

  • Cache-aside getMetadata via Redis when REDIS_URL is set; TTL from METADATA_CACHE_TTL_SECONDS (default 600s).
  • Invalidate cache on upsertMetadata.
  • GET /metrics exposes metadata_cache_hits for observability.
  • Introduced MetadataModule so raffles and search share one MetadataService instance.

Validation

  • npm run build
  • npm test -- --runInBand

Add optional Redis-backed cache for getMetadata with configurable TTL, invalidate on upsert, shared MetadataModule for raffles/search, and GET /metrics metadata_cache_hits counter.

Made-with: Cursor
@vercel

vercel Bot commented Apr 28, 2026

Copy link
Copy Markdown

@yinkscss is attempting to deploy a commit to the otaiki1's projects Team on Vercel.

A member of the Team first needs to authorize it.

@Otaiki1
Otaiki1 merged commit 4c8d149 into crackedstudio:master Apr 29, 2026
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Redis caching layer for raffle metadata reads

2 participants