Initial boiler plate project
This commit is contained in:
29
node_modules/next/dist/server/lib/incremental-cache/file-system-cache.d.ts
generated
vendored
Normal file
29
node_modules/next/dist/server/lib/incremental-cache/file-system-cache.d.ts
generated
vendored
Normal file
@ -0,0 +1,29 @@
|
||||
import type { CacheHandler, CacheHandlerContext, CacheHandlerValue } from './';
|
||||
import type { CacheFs } from '../../../shared/lib/utils';
|
||||
type FileSystemCacheContext = Omit<CacheHandlerContext, 'fs' | 'serverDistDir'> & {
|
||||
fs: CacheFs;
|
||||
serverDistDir: string;
|
||||
experimental: {
|
||||
ppr: boolean;
|
||||
};
|
||||
};
|
||||
export default class FileSystemCache implements CacheHandler {
|
||||
private fs;
|
||||
private flushToDisk?;
|
||||
private serverDistDir;
|
||||
private appDir;
|
||||
private pagesDir;
|
||||
private tagsManifestPath?;
|
||||
private revalidatedTags;
|
||||
private readonly experimental;
|
||||
private debug;
|
||||
constructor(ctx: FileSystemCacheContext);
|
||||
resetRequestCache(): void;
|
||||
private loadTagsManifest;
|
||||
revalidateTag(...args: Parameters<CacheHandler['revalidateTag']>): Promise<void>;
|
||||
get(...args: Parameters<CacheHandler['get']>): Promise<CacheHandlerValue | null>;
|
||||
set(...args: Parameters<CacheHandler['set']>): Promise<void>;
|
||||
private detectFileKind;
|
||||
private getFilePath;
|
||||
}
|
||||
export {};
|
||||
Reference in New Issue
Block a user