[#BloombergLP-bdlcc-Cache-insertBulk-03] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlcc.adoc[bdlcc]::xref:BloombergLP/bdlcc/Cache.adoc[Cache]::insertBulk :relfileprefix: ../../../ :mrdocs: Insert the specified movable `data` into this cache. == Synopsis Declared in `<bdlcc_cache.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int insertBulk(xref:BloombergLP/bslmf/MovableRef.adoc[bslmf::MovableRef<bsl::vector<KVType>>] data); ---- == Description Insert the specified `data` (composed of Key‐Value pairs) into this cache. If a key already exists, then its value will be replaced with the value. Return the number of items successfully inserted. If an exception occurs during this action, we provide only the basic guarantee ‐ both this cache and `data` will be in some valid but unspecified state. == Return Value the number of items successfully inserted == Parameters [cols="1,4"] |=== | Name| Description | *data* | key‐value pairs to insert |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#