[#BloombergLP-bdlcc-Cache-eraseBulk-0d]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlcc.adoc[bdlcc]::xref:BloombergLP/bdlcc/Cache.adoc[Cache]::eraseBulk
:relfileprefix: ../../../
:mrdocs:

`eraseBulk` overloads

== Synopses

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

Remove the items having the specified `keys` from this cache&period; Invoke the post&hyphen;eviction callback for each removed item&period; Return the number of items successfully removed&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
xref:BloombergLP/bdlcc/Cache/eraseBulk-07.adoc[eraseBulk](xref:bsl/vector-00d.adoc[bsl::vector&lt;KEY&gt;] const& keys);
----

[.small]#xref:BloombergLP/bdlcc/Cache/eraseBulk-07.adoc[_» more&period;&period;&period;_]#

Remove the items having the keys in the specified range `&lsqb; begin, end )&rsqb;`, from this cache&period; Invoke the post&hyphen;eviction callback for each removed item&period; Return the number of items successfully removed&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class INPUT&lowbar;ITERATOR&gt;
int
xref:BloombergLP/bdlcc/Cache/eraseBulk-05.adoc[eraseBulk](
    INPUT&lowbar;ITERATOR begin,
    INPUT&lowbar;ITERATOR end);
----

[.small]#xref:BloombergLP/bdlcc/Cache/eraseBulk-05.adoc[_» more&period;&period;&period;_]#


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