public static SettingsDS.SettingsDSDataTable SelectSetting(string settingName, string settingCategory)
        {
            //bool byPass = true;
            string cacheKey = cacheKeyPreffix + settingName;

            ////---------------------------------------------------------------------
            object cacheItem = cache[cacheKey];

            if ((byPass == true) || (cacheItem == null))
            {
                cacheItem = BllSettings.SelectSetting(settingName, settingCategory);
                cache.Insert(cacheKey, cacheItem, null, DateTime.Now.ToUniversalTime().AddHours(cachePeriodHours), System.Web.Caching.Cache.NoSlidingExpiration, System.Web.Caching.CacheItemPriority.Default, null);
            }
            ////---------------------------------------------------------------------

            SettingsDS.SettingsDSDataTable resultDt = ((SettingsDS.SettingsDSDataTable)cacheItem);
            return(resultDt);
        }
 public static void SetSetting(string settingName, string settingCategory, string settingValue)
 {
     BllSettings.SetSetting(settingName, settingCategory, settingValue);
     clearCacheItem(cacheKeyPreffix, settingName);
 }
 public static SettingsDS.SettingsDSDataTable GetAllSettings(string category)
 {
     clearCacheGroup(cacheKeyPreffix);
     return(BllSettings.GetAllSettings(category));
 }