insert method

  1. @override
void insert({
  1. required Cacheable data,
  2. required String channelKey,
})
override

Implementation

@override
void insert({required Cacheable data, required String channelKey}) {
  var unit = _cacheMap[channelKey];
  if (unit == null) {
    unit = ChannelCacheUnit();
    unit.insert(data);
    _cacheMap[channelKey] = unit;
  } else {
    unit.insert(data);
  }
}