'Allows cache invalidation when containers die
:param events from self.get_events'

def invalidate_cache(self, events):

    try:
        for ev in events:
            if ((ev.get('status') == 'die') and (ev.get('id') in self._container_tags_cache)):
                del self._container_tags_cache[ev.get('id')]
    except Exception as e:
        self.log.warning(('Error    when    invalidating    tag    cache:    ' + str(e)))
