xmpp_p2p
    Preparing search index...

    Unified storage surface for serialized records and binary blobs.

    Implements

    Index

    Constructors

    Methods

    • Reads a binary blob from SQLite.

      Parameters

      • namespace: string

        Logical storage namespace.

      • key: string

        Blob key within the namespace.

      Returns Promise<Uint8Array<ArrayBufferLike> | undefined>

      The stored bytes or undefined.

    • Reads a serialized record from SQLite.

      Parameters

      • namespace: string

        Logical storage namespace.

      • key: string

        Record key within the namespace.

      Returns Promise<string | undefined>

      The stored value or undefined.

    • Writes or updates a binary blob in SQLite.

      Parameters

      • namespace: string

        Logical storage namespace.

      • key: string

        Blob key within the namespace.

      • data: Uint8Array

        Binary payload to store.

      Returns Promise<void>

      Nothing.

    • Writes or updates a serialized record in SQLite.

      Parameters

      • namespace: string

        Logical storage namespace.

      • key: string

        Record key within the namespace.

      • value: string

        Serialized payload.

      • updatedAt: string

        Update timestamp stored alongside the payload.

      Returns Promise<void>

      Nothing.