Class CouchbaseSet

CouchbaseSet provides a simplified interface for storing a set within a Couchbase document.

Hierarchy

  • CouchbaseSet

Methods

  • Adds a new item to the set. Returning whether the item already existed in the set or not.

    Parameters

    • item: any

      The item to add.

    • Optional callback: NodeCallback<boolean>

      A node-style callback to be invoked after execution.

    Returns Promise<boolean>

  • Returns whether a specific value already exists in the set.

    Parameters

    • item: any

      The value to search for.

    • Optional callback: NodeCallback<boolean>

      A node-style callback to be invoked after execution.

    Returns Promise<boolean>

  • Removes a specific value from the set.

    Parameters

    • item: any

      The value to remove.

    • Optional callback: NodeCallback<void>

      A node-style callback to be invoked after execution.

    Returns Promise<void>

  • Returns the number of elements in this set.

    Parameters

    • Optional callback: NodeCallback<number>

      A node-style callback to be invoked after execution.

    Returns Promise<number>

  • Returns a list of all values in the set.

    Parameters

    • Optional callback: NodeCallback<any[]>

      A node-style callback to be invoked after execution.

    Returns Promise<any[]>

Generated using TypeDoc