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

Name

Description

key

key of the item to remove

Created with MrDocs