@zenfs/core
Version:
A filesystem, anywhere
22 lines (21 loc) • 579 B
TypeScript
import type { Stats } from '../stats.js';
/**
* Whether the cache is enabled
*/
export declare let isEnabled: boolean;
/**
* Sets whether the cache is enabled or not
*/
export declare function setEnabled(value: boolean): void;
/**
* Gets stats from the cache, if they exist and the cache is enabled.
*/
export declare function getStats(path: string): Stats | undefined;
/**
* Adds stats if the cache is enabled
*/
export declare function setStats(path: string, value: Stats): void;
/**
* Clears the cache if it is enabled
*/
export declare function clearStats(): void;