reticulum-js
    Preparing search index...

    Class MemoryStorageAdapter

    Reference in-memory StorageAdapter. Records are kept in nested Maps keyed by namespace → key. Useful for tests, ephemeral nodes, and as the behaviour spec for real backends.

    Reads return a fresh copy (matching file/IndexedDB backends, which never hand out their internal buffer), so callers cannot corrupt the store by mutating a returned value.

    Index
    _key: Uint8Array<ArrayBufferLike> | null
    _stores: Map<string, Map<string, Uint8Array<ArrayBufferLike>>>
    • Parameters

      • namespace: string
      • key: string

      Returns Promise<Uint8Array<ArrayBufferLike> | null>

    • Parameters

      • namespace: string
      • key: string
      • value: Uint8Array<ArrayBufferLike>

      Returns Promise<void>