delete<T extends Cacheable> method

  1. @override
void delete<T extends Cacheable>({
  1. required String channelKey,
  2. String? key,
  3. Cacheable? data,
})
override

Implementation

@override
void delete<T extends Cacheable>(
    {required String channelKey, String? key, Cacheable? data}) {
  final unit = _cacheMap[channelKey];
  if (key != null && unit != null) {
    unit.delete<T>(key: key, data: data);
  } else {
    _cacheMap.remove(channelKey);
  }
}