/opt/canhelp/node_modules/next/dist/server/lib/incremental-cache
Edit: /opt/canhelp/node_modules/next/dist/server/lib/incremental-cache/file-system-cache.d.ts (1068B)
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
& {
fs: CacheFs;
serverDistDir: string;
};
export default class FileSystemCache implements CacheHandler {
private fs;
private flushToDisk?;
private serverDistDir;
private revalidatedTags;
private static debug;
private static memoryCache;
constructor(ctx: FileSystemCacheContext);
resetRequestCache(): void;
revalidateTag(...args: Parameters): Promise;
get(...args: Parameters): Promise;
set(key: string, data: IncrementalCacheValue | null, ctx: SetIncrementalFetchCacheContext | SetIncrementalResponseCacheContext): Promise;
private getFilePath;
}
export {};