CClash.FileCacheStore.Load C# (CSharp) Method

Load() public static method

public static Load ( string cacheFolder ) : FileCacheStore
cacheFolder string
return FileCacheStore
        public static FileCacheStore Load(string cacheFolder)
        {
            return new FileCacheStore(cacheFolder);
        }

Usage Example

Example #1
0
 public CompilerCacheBase(string cacheFolder) : this()
 {
     Logging.Emit("setting up file stores");
     if (string.IsNullOrEmpty(cacheFolder))
     {
         throw new ArgumentNullException("cacheFolder");
     }
     outputCache  = FileCacheStore.Load(Path.Combine(cacheFolder, "outputs"));
     includeCache = FileCacheStore.Load(Path.Combine(cacheFolder, "includes"));
     Logging.Emit("setup cache info");
     stats = new CacheInfo(outputCache);
     Logging.Emit("setup hasher");
     hasher = new HashUtil(includeCache);
 }