Repository navigation
Add @pegma/cache-redis (Cache Core Phase 2) - #2
Conversation
Phase 2 lands a generic Redis CacheStore adapter with clock-driven TTL, a sidecar tag index, and no implicit multi-key commands. CI keeps the Phase 1 Node matrix and adds a Redis service job. Co-authored-by: Fly Over Coder <FlyOverCoder@gmail.com>
|
You have reached your Codex usage limits for security reviews. Please try again later. |
The ioredis client is now pinged in beforeAll, and get treats a corrupt envelope separately from a backend I/O failure. Co-authored-by: Fly Over Coder <FlyOverCoder@gmail.com>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5897c5ec7c
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sliding get now compare-and-sets the envelope it read so a concurrent set is not restored. invalidateTags drops stale tag memberships instead of deleting an entry that no longer carries that tag. Co-authored-by: Fly Over Coder <FlyOverCoder@gmail.com>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 4e180fd. Configure here.
A lost compare-and-set no longer mutates the in-memory envelope, so get does not advertise an extended expiresAt that Redis never stored. Co-authored-by: Fly Over Coder <FlyOverCoder@gmail.com>

Phase 2 only: a generic Redis adapter over the Phase 1
CacheStoreport.What landed
@pegma/cache-redis(packages/cache-redis)CacheStoreClock(not RedisEXPIRE)pnpm run test:redis)0.1.0)Named future hosts: RetireGolden.org and Exsimplify. No Azure Redis, ElastiCache, or Upstash packages.
How to verify
pnpm run format:check pnpm run check pnpm test pnpm run test:redisDo not merge, publish, or tag from this PR.