def useDoubleCache(cache_dir, cache_max_size=0, **options): """ :param cache_dir: Absolute path to the existing cache directory :param cache_max_size: The maximum number of cache entries to hold in memory Set the default factory to a new DoubleCachedSC2Factory with the given cache_dir. A limited number of remote resources are cached in memory for faster access times. All remote resources are saved to the file system for faster access times. """ setFactory(factories.DoubleCachedSC2Factory(cache_dir, cache_max_size, **options))
def useDoubleCache(cache_dir, cache_max_size=0, **options): setFactory(factories.DoubleCachedSC2Factory(cache_dir, cache_max_size, **options))