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