private static void InitCacheConnection() { try { if (isApiCacheEnabled && (ApiCacheService == null || !ApiCacheService.IsConnectionActive())) { ApiCacheService = new RedisCacheService(KLMApiCacheUrl, 6379); } if (isWebCacheEnabled && (WebCacheService == null || !WebCacheService.IsConnectionActive())) { WebCacheService = new RedisCacheService(KLMWebCacheUrl, 6379); } } catch (Exception ex) { ConsoleLogger.Write($"ERROR: CACHE InitCacheConnection - {ex.ToString()}"); } }