BloombergLP::bdlcc::Cache::erase

Remove the item having the specified key from this cache.

Synopsis

Declared in <bdlcc_cache.h>

int
erase(KEY const& key);

Description

Invoke the post-eviction callback for the removed item. Return 0 on success and 1 if key does not exist.

Return Value

0 on success and 1 if key does not exist

Parameters

NameDescription
keykey of the item to remove