def METHOD_NAME(self, factor: float) -> bool:
    """
    Set the cache factor for this individual cache.
    This will trigger a resize if it changes, which may require evicting
    items from the cache.
    Returns:
        Whether the cache changed size or not.
    """
    new_size = int(self._original_max_size * factor)
    if new_size != self._max_size:
        self._max_size = new_size
        self.evict()
        return True
    return False