Ejemplo n.º 1
0
def useFileCache(cache_dir, **options):
    """
    :param cache_dir: Absolute path to the existing cache directory

    Set the default factory to a new FileCachedSC2Factory with the given cache_dir.
    All remote resources are saved to the file system for faster access times.
    """
    setFactory(factories.FileCachedSC2Factory(cache_dir, **options))
Ejemplo n.º 2
0
def useFileCache(cache_dir, **options):
    setFactory(factories.FileCachedSC2Factory(cache_dir, **options))