/// <summary> /// Gets all the partition names that have been entered into the cache. Each time a partition is given to be used, it is /// saved in the cache for tracking purposes. /// </summary> /// <returns>List of all partition names</returns> public async Task <List <string> > GetAllPartitionNamesAsync() { var allPartitionNames = await _redisDatabase.SetMembersAsync(AllPartitionsCacheKey).ConfigureAwait(false); var partitions = allPartitionNames.Select(partitionName => partitionName.ToString()).ToList(); return(partitions); }