UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

36 lines (35 loc) 938 B
//#region src/infra/backup-volatile-stat-cache.ts const VOLATILE_BACKUP_SYNTHETIC_STAT = { isBlockDevice: () => false, isCharacterDevice: () => false, isDirectory: () => false, isFIFO: () => false, isFile: () => false, isSocket: () => false, isSymbolicLink: () => false }; var BackupVolatileStatCache = class extends Map { constructor(isVolatilePath) { super(); this.isVolatilePath = isVolatilePath; } get(key) { const cached = super.get(key); if (cached) return cached; return this.isVolatilePath(key) ? VOLATILE_BACKUP_SYNTHETIC_STAT : void 0; } }; var BackupLinkCache = class extends Map { get(_key) {} set(_key, _value) { return this; } }; function createBackupVolatileStatCache(isVolatilePath) { return new BackupVolatileStatCache(isVolatilePath); } function createBackupLinkCache() { return new BackupLinkCache(); } //#endregion export { createBackupVolatileStatCache as n, createBackupLinkCache as t };