Reference

createMemoryRouteCache

Creates an in-memory route response cache for app-router rendering. The cache is process-local and checks expiration on reads and periodic write sweeps. Capacity eviction follows insertion/update order; an oldest live entry can be evicted while a newer expired entry awaits its next read or sweep. It is suitable for development, tests, or single-process deployments that do not need shared invalidation.

Signature

function createMemoryRouteCache(options: MemoryRouteCacheOptions): AppRouterCache