file-system-cache.d.ts 454 B

123456789101112
  1. import type { CacheHandler, CacheHandlerContext, CacheHandlerValue } from './';
  2. export default class FileSystemCache implements CacheHandler {
  3. private fs;
  4. private flushToDisk?;
  5. private serverDistDir;
  6. private memoryCache?;
  7. private appDir;
  8. constructor(ctx: CacheHandlerContext);
  9. get(key: string): Promise<CacheHandlerValue | null>;
  10. set(key: string, data: CacheHandlerValue['value']): Promise<void>;
  11. private getFsPath;
  12. }