Function put

  • Writes a key/value item to the map.

    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.

    • key: string

      Map key to write.

    • value: AerospikeBinValue

      Map value to write.

    • Optionalpolicy: policy.MapPolicy

      The map policy.

    Returns MapOperation

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

    Depending on the map policy and whether an entry with the same key already exists in the map, a new key 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