invalidate method

dynamic invalidate(
  1. K key
)

Implementation

invalidate(K key) {
  cachedElements.remove(key);
}