private static bool InitializeCache() { string cacheName = ConfigurationSettings.AppSettings["CacheName"].ToString(); try { _cache = NCache.InitializeCache(cacheName); _cache.Clear(); return true; } catch(Exception e) { Console.WriteLine("Error occured while trying to initialize Cache named: [" + cacheName + "] \n" + "Exception: " + e.Message); return false; } }