Ecosystem ↗

Route data cache

Explicit process-local route data policies and tenant-scoped invalidation.

↗ View Markdown

Use the server-only zeruxjs/route-data-cache entry after host authorization. The coordinator borrows a scoped cache manager and defaults result responses to no-store. Explicit anonymous public policies may produce public HTTP caching; personalized scopes cannot. Cache only plain JSON with all locale/route/identity dependencies represented in the key.

Fresh and stale windows are separate. Stale refresh errors never extend expiry. Tag/path invalidation retires the entry; late refresh writes cannot populate its replacement. These tags do not refer to the tracking container package.

Coordination and invalidation are process-local, including when storage is Redis. Distributed requirements reject. Invoke invalidation from an authorized post-commit action callback. Close the coordinator before its borrowed cache; cooperative cancellation cannot force a handler or backend to finish.

See the framework README's “Opt-in route data cache” section and packages/zeruxjs/examples/route-data-cache.ts for exact bounds and public imports.

Implementation sources

Implementation files for the APIs described on this page.

ZeruxJS · Open source · MIT OR Apache-2.0

Make yourself at home.

Every shortcut has a visible control too. Reading and navigation work without JavaScript.

Ctrl / ⌘ K
Search all documentation
/
Search, outside editable fields
?
This help, outside editable fields
↑ / ↓
Move through search results
Esc
Close a dialog or version menu
Progress, privacy, offline reading and controls →

Reset this learning record?

This removes course answers, exercise confirmations, bookmarks and recent pages for this docs version in this browser. Export a copy first if you want to keep it.

Search documentation

Type at least two characters.