evict method

  1. @override
void evict()
override

Implementation

@override
void evict() {
  final keys = _cachedDataMap.keys.toList();
  keys.forEach((key) {
    final data = _cachedDataMap[key]!;
    final diff = DateTime.now().millisecondsSinceEpoch - data.ts;
    if (data.isRemoved && diff > 180) _cachedDataMap.remove(key);
  });
}