Adds a new item to the set. Returning whether the item already existed in the set or not.
The item to add.
Optional
callback: NodeCallback<boolean>A node-style callback to be invoked after execution.
Returns whether a specific value already exists in the set.
The value to search for.
Optional
callback: NodeCallback<boolean>A node-style callback to be invoked after execution.
Removes a specific value from the set.
The value to remove.
Optional
callback: NodeCallback<void>A node-style callback to be invoked after execution.
Returns the number of elements in this set.
Optional
callback: NodeCallback<number>A node-style callback to be invoked after execution.
Returns a list of all values in the set.
Optional
callback: NodeCallback<any[]>A node-style callback to be invoked after execution.
CouchbaseSet provides a simplified interface for storing a set within a Couchbase document.
See
Collection.set