Exemplo n.º 1
0
        /// <summary>
        /// 缓存语言
        /// </summary>
        /// <returns></returns>
        public Hashtable CacheAllTexts()
        {
            Hashtable dictData = null;

            ILanguageBusiness language = ((IContainer)StaticObj.Container).Resolve <ILanguageBusiness>();

            dictData = language.GetAllTexts();

            HttpRuntime.Cache.Add(CacheName, dictData, null, DateTime.Now.AddMonths(3), System.Web.Caching.Cache.NoSlidingExpiration, CacheItemPriority.Normal, null);

            return(dictData);
        }