couchbase
    Preparing search index...

    Class CouchbaseSet

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

    Index

    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.

      • Optionalcallback: 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.

      • Optionalcallback: 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.

      • Optionalcallback: NodeCallback<void>

        A node-style callback to be invoked after execution.

      Returns Promise<void>

    • Returns the number of elements in this set.

      Parameters

      • Optionalcallback: NodeCallback<number>

        A node-style callback to be invoked after execution.

      Returns Promise<number>

    • Returns a list of all values in the set.

      Parameters

      • Optionalcallback: NodeCallback<any[]>

        A node-style callback to be invoked after execution.

      Returns Promise<any[]>