kura
Version:
The FileSystem API abstraction library.
18 lines • 612 B
TypeScript
import { AbstractAccessor } from "./AbstractAccessor";
import { FileSystemObject } from "./FileSystemObject";
export interface ContentCacheEntry {
access: number;
content: Blob | BufferSource | string;
lastModified: number;
size: number;
}
export declare class ContentsCache {
private cache;
private options;
constructor(accessor: AbstractAccessor);
clear(): void;
get(fullPath: string): string | BufferSource | Blob;
put(obj: FileSystemObject, content: Blob | BufferSource | string): void;
remove(fullPath: string): void;
}
//# sourceMappingURL=ContentsCache.d.ts.map