private string GetCacheDescription(SystemCacheType cacheType) { if (cacheType == SystemCacheType.General) { return("Map & Authentication"); } if (cacheType == SystemCacheType.GraphData) { return("Graph Data"); } throw new NotImplementedException($"Don't know how to handle cache type '{cacheType}'"); }
internal static CommandFunction GetClearSystemCacheFunction(SystemCacheType cache) { if (cache == SystemCacheType.General) { return(CommandFunction.ClearCache); } if (cache == SystemCacheType.GraphData) { return(CommandFunction.RecalcCache); } throw new NotImplementedException($"Don't know how to handle cache type '{cache}'"); }
public ClearSystemCacheParameters(SystemCacheType cacheType) { this.cacheType = cacheType; }