couchbase
    Preparing search index...

    Class CouchbaseMap

    CouchbaseMap provides a simplified interface for storing a map within a Couchbase document.

    Index

    Methods

    • Provides the ability to async-for loop this object.

      Returns AsyncIterator<[any, string]>

    • Checks whether a specific key exists in the map.

      Parameters

      • item: string

        The key in the map to search for.

      • Optionalcallback: NodeCallback<boolean>

        A node-style callback to be invoked after execution.

      Returns Promise<boolean>

    • Iterates through every item in the map.

      Parameters

      • rowCallback: (value: any, key: string, map: CouchbaseMap) => void

        A callback invoked for each item in the list.

      • Optionalcallback: NodeCallback<void>

        A node-style callback to be invoked after execution.

      Returns Promise<void>

    • Fetches a specific key from the map.

      Parameters

      • item: string

        The key in the map to retrieve.

      • Optionalcallback: NodeCallback<any>

        A node-style callback to be invoked after execution.

      Returns Promise<any>

    • Returns an object representing all items in the map.

      Parameters

      • Optionalcallback: NodeCallback<{ [key: string]: any }>

        A node-style callback to be invoked after execution.

      Returns Promise<{ [key: string]: any }>

    • Returns a list of all the keys which exist in the map.

      Parameters

      • Optionalcallback: NodeCallback<string[]>

        A node-style callback to be invoked after execution.

      Returns Promise<string[]>

    • Removes a specific key from the map.

      Parameters

      • item: string

        The key in the map to remove.

      • Optionalcallback: NodeCallback<void>

        A node-style callback to be invoked after execution.

      Returns Promise<void>

    • Sets a specific to the specified value in the map.

      Parameters

      • item: string

        The key in the map to set.

      • value: any

        The new value to set.

      • Optionalcallback: NodeCallback<void>

        A node-style callback to be invoked after execution.

      Returns Promise<void>

    • Returns the number of items that exist in the map.

      Parameters

      • Optionalcallback: NodeCallback<number>

        A node-style callback to be invoked after execution.

      Returns Promise<number>

    • Returns a list of all the values which exist in the map.

      Parameters

      • Optionalcallback: NodeCallback<any[]>

        A node-style callback to be invoked after execution.

      Returns Promise<any[]>