public void Clear(IApiEntryPoint entrypoint) { IEnumerable<string> toRemove = Cache.Keys.Cast<string>().Where(x => x.StartsWith(entrypoint.GetType() + ":")); foreach (string remove in toRemove) { Cache.Remove(remove); } }
private static string GetKey(IApiEntryPoint point, string key) { return(point.GetType() + ":" + key); }
public void Clear(IApiEntryPoint entrypoint) { IEnumerable <string> toRemove = Cache.Keys.Cast <string>().Where(x => x.StartsWith(entrypoint.GetType() + ":")); foreach (string remove in toRemove) { Cache.Remove(remove); } }
private static string GetKey(IApiEntryPoint point, string key) { return point.GetType() + ":" + key; }