Initial commit
This commit is contained in:
commit
78f8d225ee
21173 changed files with 2907774 additions and 0 deletions
21
node_modules/next/dist/server/lib/incremental-cache/file-system-cache.d.ts
generated
vendored
Normal file
21
node_modules/next/dist/server/lib/incremental-cache/file-system-cache.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
import type { CacheHandler, CacheHandlerContext, CacheHandlerValue } from './';
|
||||
import type { CacheFs } from '../../../shared/lib/utils';
|
||||
import { type IncrementalCacheValue, type SetIncrementalFetchCacheContext, type SetIncrementalResponseCacheContext } from '../../response-cache';
|
||||
type FileSystemCacheContext = Omit<CacheHandlerContext, 'fs' | 'serverDistDir'> & {
|
||||
fs: CacheFs;
|
||||
serverDistDir: string;
|
||||
};
|
||||
export default class FileSystemCache implements CacheHandler {
|
||||
private fs;
|
||||
private flushToDisk?;
|
||||
private serverDistDir;
|
||||
private revalidatedTags;
|
||||
private debug;
|
||||
constructor(ctx: FileSystemCacheContext);
|
||||
resetRequestCache(): void;
|
||||
revalidateTag(...args: Parameters<CacheHandler['revalidateTag']>): Promise<void>;
|
||||
get(...args: Parameters<CacheHandler['get']>): Promise<CacheHandlerValue | null>;
|
||||
set(key: string, data: IncrementalCacheValue | null, ctx: SetIncrementalFetchCacheContext | SetIncrementalResponseCacheContext): Promise<void>;
|
||||
private getFilePath;
|
||||
}
|
||||
export {};
|
||||
Loading…
Add table
Add a link
Reference in a new issue