code: def remove(self, entity):
          
          self.__id_map.pop(entity.id, None)
          self.__slug_map.pop(entity.slug, None)
          self.__entities.remove(entity)
docs: Removes the given entity from this cache.
  
          :param entity: Entity to remove.
          :type entity: Object implementing :class:`everest.interfaces.IEntity`.
          :raises KeyError: If the given entity is not in this cache.
          :raises ValueError: If the ID of the given entity is `None`.