IFClite TypeScript API
    Preparing search index...

    Interface SweepOptions

    interface SweepOptions {
        epochMs?: number;
        now?: () => number;
        sweepUnknownAge?: boolean;
    }
    Index
    epochMs?: number

    Grace window in ms — only blobs older than this are candidates. Default 60_000 (1 minute). Set to 0 to sweep aggressively (tests).

    now?: () => number

    Override Date.now for deterministic tests.

    sweepUnknownAge?: boolean

    When a blob's uploadedAt can't be recovered, default behaviour is to fail safe and treat it as too young to sweep (age 0), so the grace window still protects freshly uploaded blobs. Set this to true to opt into sweeping age-unknown blobs anyway.