tls-devicer
    Preparing search index...

    Interface AsyncTlsStorage

    Async variant of TlsStorage for adapters backed by external persistent stores (SQLite, PostgreSQL, Redis).

    interface AsyncTlsStorage {
        clear(deviceId?: string): Promise<void>;
        getHistory(deviceId: string, limit?: number): Promise<TlsSnapshot[]>;
        getLatest(deviceId: string): Promise<TlsSnapshot | null>;
        init(): Promise<void>;
        save(snapshot: Omit<TlsSnapshot, "id">): Promise<TlsSnapshot>;
        size(): Promise<number>;
    }
    Index

    Methods

    • One-time initialisation — creates the table/schema if it does not exist.

      Returns Promise<void>