public static string RunCachableCmd(string cmd, string arguments) { string output; if (GitCommandCache.TryGet(arguments, out output)) return output; output = RunCmd(cmd, arguments); GitCommandCache.Add(arguments, output); return output; }