Skip to content

Adds transcript caching and DI integration#122

Merged
ksigWyatt merged 2 commits intomasterfrom
dev
Feb 4, 2026
Merged

Adds transcript caching and DI integration#122
ksigWyatt merged 2 commits intomasterfrom
dev

Conversation

@ksigWyatt
Copy link
Member

Improves transcript retrieval performance and reduces blob storage calls by introducing long-lived caching and wiring the cache through dependency injection.

Summary:

  • Caches transcript blobs with a 365‑day TTL (transcripts are immutable) to cut latency and Azure costs
  • Introduces dedicated cache keys and a pattern to invalidate all transcript-related entries
  • Integrates the cache service via DI so the transcript service can leverage shared caching
  • Normalizes cache keys by lowercasing message IDs and logs cache hits for observability
  • Updates unit tests to inject a mocked cache dependency

Adds server-side caching to transcript retrieval to reduce repeated storage reads and improve response times. Leverages a long-lived cache policy aligned with immutable transcript data and checks the cache before downloading content.

Integrates the cache service via dependency injection, defines keys and an invalidation pattern for transcript data, and updates unit tests to use a mock cache. Adjusts service registration to provide the cache dependency, with no changes to external behavior.

- Adds cache keys and pattern for transcript data
- Caches deserialized transcript content and reuses on hits
- Injects cache service into transcript handling and updates registration
- Updates tests to accommodate the new dependency
@github-actions
Copy link

github-actions bot commented Feb 4, 2026

AI Code Review: No issues found. The changes look good!

@ksigWyatt ksigWyatt merged commit cb08d84 into master Feb 4, 2026
3 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.

1 participant