Skip to content

feat(ts): add redis ttl cache layer#134

Closed
lan17 wants to merge 1 commit into
lev/ts-m1-local-mvpfrom
lev/ts-m2-redis-ttl
Closed

feat(ts): add redis ttl cache layer#134
lan17 wants to merge 1 commit into
lev/ts-m1-local-mvpfrom
lev/ts-m2-redis-ttl

Conversation

@lan17

@lan17 lan17 commented May 12, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • add an optional Redis-backed cache layer behind a small command-client interface
  • preserve local-only behavior when Redis is not configured, and add local → Redis → fallback read-through when it is
  • add versioned timestamped Redis envelopes, default/custom serializer support, cross-layer delete/flushAll, and fail-open Redis error handling
  • document Milestone 2 behavior and add Given/When/Then behavioral Redis tests

Validation

  • pnpm install --frozen-lockfile
  • pnpm ts:gcache:typecheck
  • pnpm ts:gcache:test — 26 tests, coverage: 98.13% statements / 95.27% branches / 100% functions / 98.08% lines
  • pnpm ts:gcache:build

Stack

Stacked on #133 / lev/ts-m1-local-mvp. This PR intentionally leaves runtime ramp controls, metrics, and targeted invalidation/watermarks for later milestone PRs.

@codecov

codecov Bot commented May 12, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.47%. Comparing base (9fc8b7e) to head (1f32c9c).

Additional details and impacted files
@@                 Coverage Diff                  @@
##           lev/ts-m1-local-mvp     #134   +/-   ##
====================================================
  Coverage                97.47%   97.47%           
====================================================
  Files                       13       13           
  Lines                      673      673           
====================================================
  Hits                       656      656           
  Misses                      17       17           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@lan17

lan17 commented May 12, 2026

Copy link
Copy Markdown
Collaborator Author

Closing this stacked milestone PR in favor of the consolidated peak PR #137.

@lan17 lan17 closed this May 12, 2026
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.

2 participants