couchbase
    Preparing search index...

    Class CouchbaseQueue

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

    Index

    Methods

    Methods

    • Removes an item from the front of the queue.

      Parameters

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

      • Optionalcallback: NodeCallback<void>

        A node-style callback to be invoked after execution.

      Returns Promise<void>

    • Returns the number of items in the queue.

      Parameters

      • Optionalcallback: NodeCallback<number>

        A node-style callback to be invoked after execution.

      Returns Promise<number>