def _init_cache(self):
        """Initialize cache."""
        self._add_cache = defaultdict(list)
        self._reverse_add_cache = defaultdict(list)
        self._undefined_cache = {}
        self._remove_cache = {}
Initialize cache.