Skip to content

Notification service types - #321

Open
haydentho wants to merge 4 commits into
devfrom
notification-service-types
Open

Notification service types#321
haydentho wants to merge 4 commits into
devfrom
notification-service-types

Conversation

@haydentho

Copy link
Copy Markdown
Collaborator

No description provided.

TitikshaDeakin and others added 4 commits August 3, 2026 11:52
- Add shared CacheService (get/set/delete/deleteMany/exists) backed by
  the existing Redis client, with cache-aside pattern and fail-soft
  error handling (logs and returns safe defaults instead of throwing,
  so a Redis outage never takes the API down)
- Extend Redis client with connection/error logging, checkRedisHealth(),
  and closeRedisConnection() for graceful shutdown
- Add Jest + ts-jest as shared backend devDependencies, with a single
  root jest.config.js resolving @phoenix/* path aliases so any service
  can add test files without extra setup
- Exclude *.test.ts/*.spec.ts from all service tsconfig builds so test
  code never leaks into production dist output
- Add 12 unit tests for CacheService covering cache hit/miss, malformed
  JSON eviction, and Redis-down failure handling (all passing)
Documents the required Member 5 analysis output: cache-candidate list
and priority ranking, recommended caching pattern, Redis connection
lifecycle, configuration requirements, and proposed initial endpoint
(getEventStatuses) for Phase 1 group sign-off, per the task doc's
Individual Completion Evidence requirements.
…ce-Titiksha-backend

S2-T3: Add Redis CacheService foundation with Jest test setup
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.

3 participants