public static XDocument Load(string fileName, bool isDictionary, int cacheTime = 0, string cacheKey = "")
 {
     var cache = new IkeCodeCache();
     if (string.IsNullOrWhiteSpace(cacheKey))
         cacheKey = string.Format("IkeCodeConfig_Load_{0}_{1}", fileName, isDictionary);
     return (XDocument)cache.AutoCache<string, bool, string, XDocument>(cacheKey, cacheTime,
         (res, res1, res2) => LoadXmlNoCache(fileName, isDictionary, cacheKey), fileName, isDictionary, cacheKey).Value;
 }
        public static XDocument Load(string fileName, bool isDictionary, bool isAdmin, int cacheTime = 0, string cacheKey = "")
        {
            var cache = new IkeCodeCache();

            if (string.IsNullOrWhiteSpace(cacheKey))
            {
                cacheKey = string.Format("IkeCodeConfig_Load_{0}_{1}", fileName, isAdmin);
            }
            return((XDocument)cache.AutoCache <string, bool, bool, string, XDocument>(cacheKey, cacheTime,
                                                                                      (res, res1, res2, res3) => LoadXmlNoCache(fileName, isDictionary, isAdmin, cacheKey), fileName, isDictionary, isAdmin, cacheKey).Value);
        }