CachedSnippets UpdateSnippets(string directory, long lastDirectoryWrite) { var snippets = extractor.ReadSnippets(directory); var cachedSnippets = new CachedSnippets( ticks: lastDirectoryWrite, readSnippets: snippets); return(snippetCache[directory] = cachedSnippets); }
public bool TryRemoveDirectory(string directory, out CachedSnippets cached) { return(snippetCache.TryRemove(directory, out cached)); }