MCPcopy Index your code
hub / github.com/nodejs/nodejs.org / createCachedMarkdownCache

Function createCachedMarkdownCache

apps/site/next.dynamic.mjs:39–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37// Provides an in-memory Map that lasts the whole build process
38// and disabled when on development mode (stubbed)
39const createCachedMarkdownCache = () => {
40 if (IS_DEV_ENV) {
41 return {
42 has: () => false,
43 set: () => {},
44 get: () => null,
45 };
46 }
47
48 return new Map();
49};
50
51const getDynamicRouter = async () => {
52 // Creates a Cache System that is disabled during development mode

Callers 1

getDynamicRouterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected