Joseph
26b2bbe024
example: Use a Redis cacheHandler w/o dependencies ( #95346 )
...
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).
2026-09-09 14:42:25 +02:00
..
2025-10-08 16:35:07 -07:00
2025-09-02 12:35:42 +02:00
2025-09-02 12:35:42 +02:00
2025-09-02 12:35:42 +02:00
2025-09-02 12:35:42 +02:00
2025-09-02 12:35:42 +02:00
2025-09-02 12:35:42 +02:00
2025-09-02 12:35:42 +02:00
2025-09-02 12:35:42 +02:00
2025-09-02 12:35:42 +02:00
2025-12-12 12:51:14 -08:00
2025-09-02 12:35:42 +02:00
2025-12-23 21:02:35 +00:00
2025-09-02 12:35:42 +02:00
2026-09-09 14:42:25 +02:00
2025-09-02 12:35:42 +02:00
2025-11-26 00:05:18 +01:00
2026-06-26 11:42:50 +02:00
2025-11-24 14:04:41 +01:00
2026-07-20 18:18:38 +02:00
2025-09-02 12:35:42 +02:00
2025-04-23 20:48:58 -05:00
2025-09-02 12:35:42 +02:00
2025-04-23 20:48:58 -05:00
2025-11-24 14:04:41 +01:00
2025-04-23 20:48:58 -05:00
2025-04-23 20:48:58 -05:00
2025-09-02 12:35:42 +02:00
2025-09-02 12:35:42 +02:00
2025-09-02 12:35:42 +02:00
2025-09-02 12:35:42 +02:00
2025-09-02 12:35:42 +02:00
2025-12-09 21:22:08 +01:00
2025-11-24 14:04:41 +01:00
2025-09-02 12:35:42 +02:00
2025-04-23 20:48:58 -05:00
2025-04-23 20:48:58 -05:00
2025-09-02 12:35:42 +02:00
2025-04-23 20:48:58 -05:00
2026-08-10 15:49:14 -07:00
2025-11-24 14:04:41 +01:00
2025-09-02 12:35:42 +02:00
2026-07-24 00:04:08 +02:00
2025-09-02 12:35:42 +02:00
2025-11-02 13:14:20 +01:00
2025-09-30 00:13:41 +02:00
2025-09-02 12:35:42 +02:00
2025-09-02 12:35:42 +02:00
2025-09-02 12:35:42 +02:00
2025-09-02 12:35:42 +02:00
2025-09-02 12:35:42 +02:00
2025-09-02 12:35:42 +02:00
2025-04-23 20:48:58 -05:00
2025-09-02 12:35:42 +02:00
2025-10-08 16:35:07 -07:00
2025-10-08 16:35:07 -07:00
2025-09-02 12:35:42 +02:00
2025-09-02 12:35:42 +02:00
2025-09-02 12:35:42 +02:00
2026-07-21 17:25:13 +00:00
2025-09-02 12:35:42 +02:00
2026-06-18 14:12:28 +02:00
2025-09-02 12:35:42 +02:00
2025-09-02 12:35:42 +02:00
2026-08-19 21:10:39 +00:00
2026-08-18 22:33:46 +00:00
2025-10-08 16:35:07 -07:00
2026-07-21 17:44:56 +02:00
2025-09-02 12:35:42 +02:00
2025-09-02 12:35:42 +02:00
2025-12-09 21:22:08 +01:00
2025-09-02 12:35:42 +02:00
2025-09-02 12:35:42 +02:00
2025-09-02 12:35:42 +02:00
2025-04-23 20:48:58 -05:00
2025-09-02 12:35:42 +02:00
2025-09-02 12:35:42 +02:00
2025-11-24 14:04:41 +01:00
2025-04-23 20:48:58 -05:00
2025-09-02 12:35:42 +02:00
2025-09-02 12:35:42 +02:00
2026-08-28 11:08:57 +02:00
2025-09-25 14:59:41 +02:00
2026-08-28 11:08:57 +02:00
2025-09-02 19:06:42 +02:00
2025-09-02 12:35:42 +02:00
2026-02-21 00:39:53 +01:00
2025-10-08 16:35:07 -07:00
2025-09-02 12:35:42 +02:00
2025-09-02 12:35:42 +02:00
2025-10-08 16:35:07 -07:00
2025-09-02 12:35:42 +02:00
2025-04-23 20:48:58 -05:00
2025-04-23 20:48:58 -05:00
2025-04-23 20:48:58 -05:00
2025-09-02 12:35:42 +02:00
2025-08-26 14:04:27 +02:00
2025-04-23 20:48:58 -05:00
2025-08-26 14:04:27 +02:00
2025-09-02 12:35:42 +02:00
2025-09-02 12:35:42 +02:00
2025-09-02 12:35:42 +02:00
2025-09-02 12:35:42 +02:00
2025-09-16 15:53:53 +02:00
2025-09-02 12:35:42 +02:00
2025-10-08 16:35:07 -07:00
2025-04-23 20:48:58 -05:00
2025-09-02 12:35:42 +02:00
2025-04-23 20:48:58 -05:00
2025-04-23 20:48:58 -05:00
2025-04-23 20:48:58 -05:00
2025-09-02 12:35:42 +02:00
2026-08-07 09:49:57 +00:00
2025-09-02 12:35:42 +02:00
2025-09-02 12:35:42 +02:00
2025-04-23 20:48:58 -05:00
2025-09-02 12:35:42 +02:00
2025-04-23 20:48:58 -05:00
2025-04-23 20:48:58 -05:00
2025-09-02 12:35:42 +02:00
2025-04-23 20:48:58 -05:00
2026-08-18 22:41:00 +00:00
2025-09-02 12:35:42 +02:00
2025-04-23 20:48:58 -05:00
2025-09-02 12:35:42 +02:00
2025-04-23 20:48:58 -05:00
2025-09-02 12:35:42 +02:00
2025-04-23 20:48:58 -05:00
2025-09-03 09:12:33 +02:00
2025-09-16 15:53:53 +02:00
2025-09-17 08:38:49 -07:00
2025-09-08 09:11:34 +02:00
2025-09-02 12:35:42 +02:00
2026-01-20 12:16:44 +01:00
2025-08-26 14:04:27 +02:00
2025-04-23 20:48:58 -05:00
2025-04-23 20:48:58 -05:00
2025-09-02 12:35:42 +02:00
2025-04-23 20:48:58 -05:00
2025-09-02 12:35:42 +02:00
2025-04-23 20:48:58 -05:00
2025-09-02 12:35:42 +02:00
2025-09-02 12:35:42 +02:00
2025-04-23 20:48:58 -05:00
2025-09-18 13:42:05 +02:00
2025-10-08 16:35:07 -07:00
2025-08-26 14:04:27 +02:00
2025-08-26 14:04:27 +02:00
2025-09-02 12:35:42 +02:00
2025-09-02 12:35:42 +02:00
2025-09-02 12:35:42 +02:00
2025-09-02 12:35:42 +02:00
2025-04-23 20:48:58 -05:00
2025-04-23 20:48:58 -05:00
2025-09-02 12:35:42 +02:00
2025-04-23 20:48:58 -05:00
2025-08-26 14:04:27 +02:00
2025-04-23 20:48:58 -05:00
2025-04-23 20:48:58 -05:00
2025-09-02 12:35:42 +02:00
2025-10-08 16:35:07 -07:00
2025-09-02 12:35:42 +02:00
2025-09-02 12:35:42 +02:00
2025-04-23 20:48:58 -05:00
2025-04-23 20:48:58 -05:00
2025-04-23 20:48:58 -05:00
2025-04-23 20:48:58 -05:00
2025-04-23 20:48:58 -05:00
2025-09-02 12:35:42 +02:00
2025-09-02 12:35:42 +02:00
2025-09-02 12:35:42 +02:00
2025-04-23 20:48:58 -05:00
2025-04-23 20:48:58 -05:00
2025-04-23 20:48:58 -05:00
2025-04-23 20:48:58 -05:00
2026-07-08 05:38:20 +00:00
2025-09-02 12:35:42 +02:00
2026-08-18 15:08:17 -07:00
2026-08-18 15:08:17 -07:00
2025-11-24 14:04:41 +01:00
2025-09-02 12:35:42 +02:00
2025-09-02 12:35:42 +02:00
2025-04-23 20:48:58 -05:00
2025-09-02 12:35:42 +02:00
2025-11-24 14:04:41 +01:00
2025-09-02 12:35:42 +02:00
2025-04-23 20:48:58 -05:00
2025-09-02 12:35:42 +02:00
2025-10-08 16:35:07 -07:00
2025-08-04 18:47:26 +02:00
2025-09-02 12:35:42 +02:00
2025-09-02 12:35:42 +02:00
2025-09-02 12:35:42 +02:00
2025-11-17 22:41:21 -08:00
2025-09-02 12:35:42 +02:00
2025-09-02 12:35:42 +02:00
2025-11-24 14:04:41 +01:00
2025-04-23 20:48:58 -05:00
2025-10-08 16:35:07 -07:00
2025-09-16 15:53:53 +02:00
2025-09-02 12:35:42 +02:00
2025-09-02 12:35:42 +02:00
2025-09-02 12:35:42 +02:00
2025-09-02 12:35:42 +02:00
2025-04-23 20:48:58 -05:00
2025-09-02 12:35:42 +02:00
2026-08-14 08:41:33 +02:00
2025-09-02 12:35:42 +02:00
2025-09-02 12:35:42 +02:00
2025-09-02 12:35:42 +02:00
2025-09-02 12:35:42 +02:00
2025-09-02 12:35:42 +02:00
2025-09-02 12:35:42 +02:00
2025-04-23 20:48:58 -05:00
2025-10-08 16:35:07 -07:00
2025-09-02 12:35:42 +02:00
2025-09-02 12:35:42 +02:00
2025-10-08 16:35:07 -07:00