static RedirectRepository() { var settingsUtility = new SettingsUtility(); // define the cache duration var cacheDuration = settingsUtility.AppSettingExists(SettingsKeys.CacheDurationKey) ? settingsUtility.GetAppSetting <int>(SettingsKeys.CacheDurationKey) : DEFAULT_CACHE_DURATION; // define cache enabled var cacheEnabled = settingsUtility.AppSettingExists(SettingsKeys.CacheEnabledKey) ? settingsUtility.GetAppSetting <bool>(SettingsKeys.CacheEnabledKey) : true; _cacheManager = new CacheManager(cacheDuration, cacheEnabled); }