internal List <CountryMaster> GetCountries()
        {
            // Get the cached item
            List <CountryMaster> countryMastersList;

            countryMastersList = CacheRepository.GetObjectAsync <List <CountryMaster> >(_distributedCache, COUNTRYMASTER_REDIS_KEY).GetAwaiter().GetResult();;
            if (countryMastersList == null || (countryMastersList != null && countryMastersList.Count == 0))
            {
                countryMastersList = _countryMasterRepository.GetCountries();
                CacheRepository.SetObjectAsync(_distributedCache, COUNTRYMASTER_REDIS_KEY, countryMastersList).GetAwaiter().GetResult();;
            }
            return(countryMastersList);
        }