A set in the Key Value Store.

KVSet is modelled after JavaScript's Set object, except that keys must be of type ArrayBuffer and no guarantees on iteration order are provided.

interface KvSet {
    size: number;
    add(key: ArrayBuffer): KvSet;
    clear(): void;
    delete(key: ArrayBuffer): void;
    forEach(callback: (value: ArrayBuffer, kvset: KvSet) => void): void;
    getVersionOfPreviousWrite(key: ArrayBuffer): undefined | number;
    has(key: ArrayBuffer): boolean;
}

Properties

size: number

Methods

  • Parameters

    • key: ArrayBuffer

    Returns KvSet

  • Returns void

  • Parameters

    • key: ArrayBuffer

    Returns void

  • Parameters

    • callback: (value: ArrayBuffer, kvset: KvSet) => void

    Returns void

  • Parameters

    • key: ArrayBuffer

    Returns undefined | number

  • Parameters

    • key: ArrayBuffer

    Returns boolean