def METHOD_NAME(self) -> None:
    """
    If a cache is instantiated after the config is read, it will be
    immediately resized to the correct size given the global factor if there
    is no per-cache factor.
    """
    config: JsonDict = {"caches": {"global_factor": 1.5}}
    self.config.read_config(config, config_dir_path="", data_dir_path="")
    self.config.resize_all_caches()
    cache: LruCache = LruCache(100)
    add_resizable_cache("foo", cache_resize_callback=cache.set_cache_factor)
    self.assertEqual(cache.max_size, 150)