Function putItems

  • Writes each entry of the given map to the map bin on the server.

    Parameters

    • bin: string

      The name of the bin. If the bin exists, it must contain a Map value; if it does not yet exist, a new Map may be created depending on the map policy's write mode.

    • items: AerospikeBins | Map<string, AerospikeBinValue>

      One or more key value pairs to write to the map.

    • Optionalpolicy: policy.MapPolicy

      The map policy.

    Returns MapOperation

    Operation that can be passed to the Client#operate command.

    For each item, depending on the map policy and whether an entry with the same key already exists in the map, a new entry will be added to the map or the existing entry with the same key will be updated. If the bin does not yet contain a map value, a new map may be created.

    This operation returns the new size of the map.

MMNEPVFCICPMFPCPTTAAATR