@yorkie-js/sdk
    Preparing search index...

    Class MemoryDocStore

    MemoryDocStore is an in-memory DocStore. It holds entries in a Map for the lifetime of the process and carries no external dependency. It is the default when a durable backend is not configured, and it doubles as a test double for the persistence loop.

    Every byte array is copied on the way in and on the way out, so neither a caller mutating what it wrote nor one mutating what it read can corrupt the stored entry.

    Implements

    Index

    Constructors

    Methods

    • saveMeta stores a copy of the header, leaving the snapshot and the log untouched.

      Parameters

      • docKey: string
      • bytes: Uint8Array

      Returns Promise<void>