/opt/canhelp/node_modules/next/dist/esm/server/lib/incremental-cache
NameSizeModeActions
file-system-cache.js159850644editdlrm
file-system-cache.js.map249220644editdlrm
index.js198030644editdlrm
index.js.map337490644editdlrm
memory-cache.external.js14140644editdlrm
memory-cache.external.js.map24330644editdlrm
shared-cache-controls.external.js27470644editdlrm
shared-cache-controls.external.js.map42700644editdlrm
tags-manifest.external.js4590644editdlrm
tags-manifest.external.js.map9800644editdlrm
Edit: /opt/canhelp/node_modules/next/dist/esm/server/lib/incremental-cache/memory-cache.external.js (1414B)
import { CachedRouteKind } from '../../response-cache/types'; import { LRUCache } from '../lru-cache'; let memoryCache; export function getMemoryCache(maxMemoryCacheSize) { if (!memoryCache) { memoryCache = new LRUCache(maxMemoryCacheSize, function length({ value }) { var _JSON_stringify; if (!value) { return 25; } else if (value.kind === CachedRouteKind.REDIRECT) { return JSON.stringify(value.props).length; } else if (value.kind === CachedRouteKind.IMAGE) { throw Object.defineProperty(new Error('invariant image should not be incremental-cache'), "__NEXT_ERROR_CODE", { value: "E501", enumerable: false, configurable: true }); } else if (value.kind === CachedRouteKind.FETCH) { return JSON.stringify(value.data || '').length; } else if (value.kind === CachedRouteKind.APP_ROUTE) { return value.body.length; } // rough estimate of size of cache value return value.html.length + (((_JSON_stringify = JSON.stringify(value.kind === CachedRouteKind.APP_PAGE ? value.rscData : value.pageData)) == null ? void 0 : _JSON_stringify.length) || 0); }); } return memoryCache; } //# sourceMappingURL=memory-cache.external.js.map