public bool CreateIfPossible(FPCKey key, string fullFilePath) { if (!Map[CACHE_FIRSTPASS].ContainsKey(key)) { return(false); } byte[] arr = Get <byte[]>(CACHE_FIRSTPASS, key); WriteFile(arr, fullFilePath); return(true); }
public void Save(FPCKey key, string fullFilePath) { Map[CACHE_FIRSTPASS][key] = File.ReadAllBytes(fullFilePath); }