Anchorage API reference
    Preparing search index...

    Interface PurgeExpiredNotificationsOptions

    interface PurgeExpiredNotificationsOptions {
        now?: () => number;
        tablePrefix?: string;
        ttlMs: number;
    }
    Index

    Properties

    now?: () => number

    Clock override for tests.

    tablePrefix?: string

    Must match createD1Storage's tablePrefix.

    ttlMs: number

    Resolved (delivered/seen/dismissed/archived/discarded) notifications whose updatedAt is older than this expire. PENDING rows are never touched — one may be waiting on a future deliverAt, and reaping it would drop a signal the model has not seen. No default: the caller (createFlowsafeWorker's cron) gates this on an opt-in retention window, since a durable inbox is meant to be readable until the host says otherwise.