Example #1
0
        public String GetGoogleKey(string app, string url)
        {
            //string key = "GoogleKey" + "_" + app;
            string appKey = string.Empty;// = (string)primitivesCache.GetData(key);

                SystemDA da = new SystemDA();
                appKey = da.GetGoogleKey(app, url);

               // primitivesCache.Add(key, appKey, CacheItemPriority.Normal, null,
                 //    new SlidingTime(TimeSpan.FromMinutes(System.Convert.ToInt32(ConfigUtil.GetConfigItem("SpotlightCacheDuration")))));

            return appKey;
        }
        public String GetNavHtml()
        {
            string key = "NavHTML";
            string navHTML = (string)primitivesCache.GetData(key);

            if (navHTML == null)
            {
                SystemDA da = new SystemDA();
                navHTML = da.GetNavHtml();

                primitivesCache.Add(key, navHTML, CacheItemPriority.Normal, null,
                     new SlidingTime(TimeSpan.FromMinutes(System.Convert.ToInt32(ConfigUtil.GetConfigItem("LongCacheDuration")))));
            }
            return navHTML;
        }
Example #3
0
        public String GetAboutText()
        {
            string key = "AboutText";
            string aboutText = (string)primitivesCache.GetData(key);

            if (aboutText == null)
            {
                SystemDA da = new SystemDA();
                aboutText = da.GetAboutText();

                primitivesCache.Add(key, aboutText, CacheItemPriority.Normal, null,
                     new SlidingTime(TimeSpan.FromMinutes(System.Convert.ToInt32(ConfigUtil.GetConfigItem("LongCacheDuration")))));
            }
            return aboutText;
        }
Example #4
0
        public DataSet GetGoogleMapZoomLinks()
        {
            string key = "GoogleMapZoomLinks";
            DataSet ds = (DataSet)primitivesCache.GetData(key);

            if (ds == null)
            {
                SystemDA da = new SystemDA();
                ds = da.GetGoogleMapZoomLinks();

                primitivesCache.Add(key, ds, CacheItemPriority.Normal, null,
                     new SlidingTime(TimeSpan.FromMinutes(System.Convert.ToInt32(ConfigUtil.GetConfigItem("LongCacheDuration")))));
            }

            return ds;
        }