BloombergLP::bdlcc::Cache::insertBulk

insertBulk overloads

Synopses

Declared in <bdlcc_cache.h>

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.

int
insertBulk(bslmf::MovableRef<bsl::vector<KVType>> data);
» more...

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.

int
insertBulk(bsl::vector<KVType> const& data);
» more...

Insert the specified range of Key-Value pairs specified by [ begin, end )] into this cache. If a key already exists, then its value will be replaced with the value. Return the number of items successfully inserted.

template<class INPUT_ITERATOR>
int
insertBulk(
    INPUT_ITERATOR begin,
    INPUT_ITERATOR end);
» more...