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);
     }
 }
示例#2
0
 private static string GetKey(IApiEntryPoint point, string key)
 {
     return(point.GetType() + ":" + key);
 }
示例#3
0
        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;
 }