Class CouchbaseQueue

CouchbaseQueue provides a simplified interface for storing a queue within a Couchbase document.

See

queue

Hierarchy

  • CouchbaseQueue

Methods

Methods

  • Removes an item from the front of the queue.

    Parameters

    • Optional callback: NodeCallback<any>

      A node-style callback to be invoked after execution.

    Returns Promise<any>

  • Adds a new item to the back of the queue.

    Parameters

    • value: any

      The value to add.

    • Optional callback: NodeCallback<void>

      A node-style callback to be invoked after execution.

    Returns Promise<void>

  • Returns the number of items in the queue.

    Parameters

    • Optional callback: NodeCallback<number>

      A node-style callback to be invoked after execution.

    Returns Promise<number>

Generated using TypeDoc