evict method

bool evict(
  1. Object key
)

Evicts a single entry from the cache, returning true if successful.

Implementation

bool evict(Object key) {
  return _cache.remove(key) != null;
}