prune method
void
prune()
Removes all expired entries from the cache. To be used when cache size and space is an issue.
Implementation
void prune() => _cache.removeWhere((K key, CacheEntry<V> value) => value.hasExpired);