Skip to content

Add @pegma/cache-elasticache (Cache Core Phase 4) - #4

Merged
FlyOverCoderKY merged 3 commits into
mainfrom
cursor/cache-elasticache-phase-4-9fc0
Aug 15, 2026
Merged

FlyOverCoderKY merged 3 commits into
mainfrom
cursor/cache-elasticache-phase-4-9fc0

Conversation

@FlyOverCoderKY

Copy link
Copy Markdown
Contributor

Phase 4 only: a thin Amazon ElastiCache adapter over the Phase 1 CacheStore port.

What landed

  • New public package @pegma/cache-elasticache (packages/cache-elasticache)
  • Composes @pegma/cache-redis (createRedisCacheStore) — ElastiCache speaks Redis, so this is not a second store and does not wrap a data-plane AWS SDK
  • Hosts still construct the Redis client at the composition root (typically TLS to the primary or configuration endpoint) and depend on CacheStore
  • Cluster hash-tag behaviour is proven, not implied: formatCacheKey embeds {tag}, tagged wire keys share a Redis Cluster slot, and a keyPrefix with braces is rejected so it cannot steal the tag
  • Conformance runs against a real Redis (pnpm run test:elasticache)
  • CI keeps the Phase 1 Node 22/24 matrix and the Redis / Azure Redis jobs; adds an ElastiCache adapter job with the same Redis service
  • Plan / README / release inventory updated in-tree; still unpublished (0.1.0)

Named future hosts: RetireGolden.org and Exsimplify. No Upstash package.

How to verify

pnpm run format:check
pnpm run check
pnpm test
pnpm run test:redis
pnpm run test:azure-redis
pnpm run test:elasticache

Do not merge, publish, or tag from this PR.

Open in Web Open in Cursor 

Phase 4 lands a CacheStore adapter for Amazon ElastiCache by composing
createRedisCacheStore. ElastiCache speaks Redis, so this package does not
wrap a data-plane AWS SDK. Cluster hash-tag colocation is proven: tagged
wire keys share a Redis Cluster slot.

Co-authored-by: Fly Over Coder <FlyOverCoder@gmail.com>
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for security reviews. Please try again later.

Co-authored-by: Fly Over Coder <FlyOverCoder@gmail.com>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 03f6e0e39c

ℹ️ 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".

Comment thread packages/cache-elasticache/README.md Resolved
The standalone ioredis client cannot follow MOVED redirects from a
cluster-mode configuration endpoint. Hash-tag formatting stays in the
adapter; the host must inject Redis.Cluster for that endpoint.

Co-authored-by: Fly Over Coder <FlyOverCoder@gmail.com>
@FlyOverCoderKY
FlyOverCoderKY merged commit 09eda07 into main Aug 15, 2026
11 checks passed
@FlyOverCoderKY
FlyOverCoderKY deleted the cursor/cache-elasticache-phase-4-9fc0 branch August 15, 2026 20:51
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