Skip to content

example: Use a Redis cacheHandler w/o dependencies#95346

Draft
icyJoseph wants to merge 1 commit into
canaryfrom
worktree-cache-handler-redis-no-adapter
Draft

example: Use a Redis cacheHandler w/o dependencies#95346
icyJoseph wants to merge 1 commit into
canaryfrom
worktree-cache-handler-redis-no-adapter

Conversation

@icyJoseph

@icyJoseph icyJoseph commented Jul 1, 2026

Copy link
Copy Markdown
Member

Verify locally:

  • Copy the example to a local directory
  • Install deps
  • docker compose up -d
  • npm run build && npm run start
  • navigate to localhost:3000/cet (or gmt)
  • open the Redis view (link in localhost:3000/cet)
  • revalidate data on /cet or /gmt
  • verify it on the Redis view

I had to update the app to async params, updateTag, and write the handler in such a way that it solved:

⨯ TypeError: p.segmentData.get is not a function
    at ignore-listed frames
⨯ Error: failed to pipe response

Also adding docs edits with this caveat.

An agent review, and cross checking with a community implementation, surfaced, that we had to read tags from data.headers['x-next-cache-tags']. This agent review added a few comments, I think they are useful, but can cut down if needed.

Last but not least, had to update the Time API endpoint (former no longer worked).

@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Stats skipped

Commit: a7287c2
View workflow run

@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Tests Passed

Commit: a7287c2

@icyJoseph icyJoseph force-pushed the worktree-cache-handler-redis-no-adapter branch from b87ae97 to a7287c2 Compare July 1, 2026 06:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant