[#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 `data` (composed of Key&hyphen;Value pairs) into this cache&period; If a key already exists, then its value will be replaced with the value&period; Return the number of items successfully inserted&period; If an exception occurs during this action, we provide only the basic guarantee &hyphen; both this cache and `data` will be in some valid but unspecified state&period;

== Synopsis

Declared in `&lt;bdlcc&lowbar;cache&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
insertBulk(xref:BloombergLP/bslmf/MovableRef.adoc[bslmf::MovableRef&lt;bsl::vector&lt;KVType&gt;&gt;] data);
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
