public async Task <string> Get(string type, string applicationId)
        {
            var cacheKey = $"{applicationId}_{type}".ToLowerInvariant();

            try
            {
                if (_cacheStorageService.TryGet(cacheKey, out string cachedContentBanner))
                {
                    return(cachedContentBanner);
                }

                var content = await _contentService.Get(type, applicationId);

                if (content != null)
                {
                    await _cacheStorageService.Save(cacheKey, content, _employerAccountsConfiguration.DefaultCacheExpirationInMinutes);
                }

                return(content);
            }
            catch
            {
                throw new ArgumentException($"Failed to get content for {cacheKey}");
            }
        }
        public async Task <GetClientContentResponse> Handle(GetClientContentRequest request, CancellationToken cancellationToken)
        {
            var applicationId = request.UseLegacyStyles ? _providerApprenticeshipsServiceConfiguration.ContentApplicationId + "-legacy" : _providerApprenticeshipsServiceConfiguration.ContentApplicationId;
            var cacheKey      = $"{applicationId}_{request.ContentType}".ToLowerInvariant();

            try
            {
                if (_cacheStorageService.TryGet(cacheKey, out string cachedContentBanner))
                {
                    return(new GetClientContentResponse
                    {
                        Content = cachedContentBanner
                    });
                }

                var contentBanner = await _service.Get(request.ContentType, applicationId);

                if (contentBanner != null)
                {
                    await _cacheStorageService.Save(cacheKey, contentBanner, 1);
                }
                return(new GetClientContentResponse
                {
                    Content = contentBanner
                });
            }
            catch (Exception ex)
            {
                _logger.Error(ex, $"Failed to get Content for {cacheKey}");

                return(new GetClientContentResponse
                {
                    HasFailed = true
                });
            }
        }