hybrid-disk-cache
Version:
A hybrid disk cache utilize both the database and the file system.
6 lines (5 loc) • 307 B
TypeScript
/// <reference types="node" />
export declare function write(dir: string, filename: string, data: Buffer): void;
export declare function read(dir: string, filename: string): Buffer;
export declare function md5name(buf: string): string;
export declare function purgeEmptyPath(dir: string): Promise<boolean>;